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

C#

 
GeneralRe: Padding an image Pin
Nathan Blomquist19-Mar-03 8:32
Nathan Blomquist19-Mar-03 8:32 
GeneralRe: Padding an image Pin
BigAndy19-Mar-03 23:12
BigAndy19-Mar-03 23:12 
Questionmy own form design? Pin
Nikso19-Mar-03 6:02
Nikso19-Mar-03 6:02 
AnswerRe: my own form design? Pin
Jon Newman19-Mar-03 7:06
Jon Newman19-Mar-03 7:06 
GeneralPaint-like selection control Pin
wgaiw19-Mar-03 4:02
wgaiw19-Mar-03 4:02 
GeneralRe: Paint-like selection control Pin
Smitha Nishant19-Mar-03 5:40
protectorSmitha Nishant19-Mar-03 5:40 
GeneralRe: Paint-like selection control Pin
Smitha Nishant19-Mar-03 5:55
protectorSmitha Nishant19-Mar-03 5:55 
GeneralRe: Paint-like selection control Pin
wgaiw19-Mar-03 6:23
wgaiw19-Mar-03 6:23 
Hi Smitha,

Thanks for your reply. I already found something like that, by setting some Pen properties and drawing a rectangle with the Graphics.DrawRectangle method I got the same. But thanks nevertheless, this way is much easier.
But drawing the selectioncontrol isn't my main problem. My main problem is the resizing of the control and setting the cursors depending on where they are. For example, when the cursor is within the control, the cursor has to be set to the SizeAll cursor. But if the cursor is in the middle dotted line of the rectangle (on the little square), the cursor has to be set to SizeNS if the cursor is on the upper or the bottom line, and to SizeWE if the cursor is on the right or the left line. And the corners also have their own cursors. Setting the cursor every time when the MouseMove event is fired depending on where the mouse is requires a lot of if's and it will be way too slow. So do you have an idea how to get that working without making the program very slow?
By the way, I'm not a very experienced programmer. So it could be I ask dumb questions Wink | ;) .

Thanks in advance,
Joost
GeneralRe: Paint-like selection control Pin
leppie19-Mar-03 9:08
leppie19-Mar-03 9:08 
GeneralRe: Paint-like selection control Pin
wgaiw19-Mar-03 23:01
wgaiw19-Mar-03 23:01 
GeneralRe: Paint-like selection control Pin
Smitha Nishant20-Mar-03 5:46
protectorSmitha Nishant20-Mar-03 5:46 
QuestionHow to align the Pen in DrawLine() ? Pin
Kid Chaos19-Mar-03 1:51
Kid Chaos19-Mar-03 1:51 
AnswerRe: How to align the Pen in DrawLine() ? Pin
bob1697219-Mar-03 4:55
bob1697219-Mar-03 4:55 
GeneralUserControl Error!! Pin
bania19-Mar-03 0:46
bania19-Mar-03 0:46 
GeneralEnterpriseServices & COM+ components Pin
Giles18-Mar-03 23:23
Giles18-Mar-03 23:23 
GeneralC# & MSSQL Pin
Marix18-Mar-03 22:00
Marix18-Mar-03 22:00 
GeneralRe: C# & MSSQL Pin
Giles19-Mar-03 9:59
Giles19-Mar-03 9:59 
GeneralOpening a document with its associated program Pin
meemo1001418-Mar-03 18:56
meemo1001418-Mar-03 18:56 
GeneralRe: Opening a document with its associated program Pin
meemo1001421-Mar-03 18:06
meemo1001421-Mar-03 18:06 
Questionhow to save animation in C# Pin
henrykao18-Mar-03 15:42
henrykao18-Mar-03 15:42 
GeneralEverything you need for email in c# here.. Pin
Member 9618-Mar-03 13:26
Member 9618-Mar-03 13:26 
GeneralRe: Everything you need for email in c# here.. Pin
jhollon13-Aug-03 5:18
jhollon13-Aug-03 5:18 
GeneralRe: Everything you need for email in c# here.. Pin
Member 9613-Aug-03 6:58
Member 9613-Aug-03 6:58 
QuestionMySQL class? Pin
zamazula18-Mar-03 13:02
zamazula18-Mar-03 13:02 
AnswerRe: MySQL class? Pin
Nathan Blomquist18-Mar-03 13:58
Nathan Blomquist18-Mar-03 13:58 

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.