Click here to Skip to main content
15,898,374 members
Home / Discussions / C#
   

C#

 
GeneralRe: Client and Server Program Pin
Vinziee31-Mar-09 2:35
Vinziee31-Mar-09 2:35 
QuestionRotate and Resize a Rectangle Pin
Madmanxxx30-Mar-09 23:34
Madmanxxx30-Mar-09 23:34 
AnswerRe: Rotate and Resize a Rectangle Pin
Mustafa Ismail Mustafa30-Mar-09 23:40
Mustafa Ismail Mustafa30-Mar-09 23:40 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx30-Mar-09 23:44
Madmanxxx30-Mar-09 23:44 
GeneralRe: Rotate and Resize a Rectangle Pin
Mustafa Ismail Mustafa31-Mar-09 0:07
Mustafa Ismail Mustafa31-Mar-09 0:07 
AnswerRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 0:22
musefan31-Mar-09 0:22 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:32
Madmanxxx31-Mar-09 0:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 0:45
musefan31-Mar-09 0:45 
Well I assume you are doing all your drawing in a paint event?

whenever you make an alteration to an object this paint event will need to be called, you can call the Invalidate() function on a panel for example

What you basically need to do if you have not already taken this approach is to have a global collection of objects (shapes that you want to draw etc.) then you iterate though each object and draw it using its propoerties (location, size, color etc.) within the paint event

I think one issue with the method you are taking is that you are rotating/resizing the graphics object as a whole, and therefore if you have multiple objects then they will not resize/rotate as they should do


if you need to drag a corner of an object you will need to look into collision detection between the cursor and the objects in your collection.

Life goes very fast. Tomorrow, today is already yesterday.

GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 0:54
Madmanxxx31-Mar-09 0:54 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:00
musefan31-Mar-09 1:00 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 1:09
Madmanxxx31-Mar-09 1:09 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 1:15
musefan31-Mar-09 1:15 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 21:32
Madmanxxx31-Mar-09 21:32 
GeneralRe: Rotate and Resize a Rectangle Pin
musefan31-Mar-09 21:46
musefan31-Mar-09 21:46 
GeneralRe: Rotate and Resize a Rectangle Pin
Madmanxxx31-Mar-09 22:25
Madmanxxx31-Mar-09 22:25 
Questioncreate enum at run time Pin
a.hamidy30-Mar-09 23:13
a.hamidy30-Mar-09 23:13 
AnswerRe: create enum at run time Pin
musefan30-Mar-09 23:18
musefan30-Mar-09 23:18 
GeneralRe: create enum at run time Pin
a.hamidy31-Mar-09 0:14
a.hamidy31-Mar-09 0:14 
GeneralRe: create enum at run time Pin
musefan31-Mar-09 0:19
musefan31-Mar-09 0:19 
AnswerRe: create enum at run time Pin
Mustafa Ismail Mustafa30-Mar-09 23:37
Mustafa Ismail Mustafa30-Mar-09 23:37 
GeneralRe: create enum at run time Pin
a.hamidy31-Mar-09 0:16
a.hamidy31-Mar-09 0:16 
GeneralRe: create enum at run time Pin
Mustafa Ismail Mustafa31-Mar-09 0:50
Mustafa Ismail Mustafa31-Mar-09 0:50 
AnswerRe: create enum at run time Pin
PIEBALDconsult31-Mar-09 7:28
mvePIEBALDconsult31-Mar-09 7:28 
QuestionRe-painting a PictureBox? Pin
Megidolaon30-Mar-09 23:05
Megidolaon30-Mar-09 23:05 
AnswerRe: Re-painting a PictureBox? Pin
DaveyM6930-Mar-09 23:14
professionalDaveyM6930-Mar-09 23:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.