Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
QuestionReference syntax Pin
kanchoette21-Jan-09 4:13
kanchoette21-Jan-09 4:13 
AnswerRe: Reference syntax Pin
Eddy Vluggen21-Jan-09 4:46
professionalEddy Vluggen21-Jan-09 4:46 
GeneralRe: Reference syntax Pin
kanchoette21-Jan-09 21:30
kanchoette21-Jan-09 21:30 
QuestionInserting XML file in SQL db Pin
KppsK21-Jan-09 3:46
KppsK21-Jan-09 3:46 
AnswerRe: Inserting XML file in SQL db Pin
DanB198321-Jan-09 5:45
DanB198321-Jan-09 5:45 
AnswerRe: Inserting XML file in SQL db Pin
Wendelius21-Jan-09 7:36
mentorWendelius21-Jan-09 7:36 
QuestionDynamic Enum Creation Pin
MamthaLalith21-Jan-09 3:07
MamthaLalith21-Jan-09 3:07 
AnswerRe: Dynamic Enum Creation Pin
#realJSOP21-Jan-09 3:09
professional#realJSOP21-Jan-09 3:09 
GeneralRe: Dynamic Enum Creation Pin
MamthaLalith21-Jan-09 3:19
MamthaLalith21-Jan-09 3:19 
GeneralRe: Dynamic Enum Creation Pin
Ben Fair21-Jan-09 3:34
Ben Fair21-Jan-09 3:34 
AnswerRe: Dynamic Enum Creation Pin
DaveyM6921-Jan-09 3:26
professionalDaveyM6921-Jan-09 3:26 
AnswerRe: Dynamic Enum Creation Pin
Dave Kreskowiak21-Jan-09 3:31
mveDave Kreskowiak21-Jan-09 3:31 
GeneralRe: Dynamic Enum Creation Pin
MamthaLalith21-Jan-09 3:41
MamthaLalith21-Jan-09 3:41 
GeneralRe: Dynamic Enum Creation Pin
Gideon Engelberth21-Jan-09 3:53
Gideon Engelberth21-Jan-09 3:53 
GeneralRe: Dynamic Enum Creation Pin
Dave Kreskowiak21-Jan-09 4:45
mveDave Kreskowiak21-Jan-09 4:45 
AnswerRe: Dynamic Enum Creation Pin
PIEBALDconsult21-Jan-09 5:24
mvePIEBALDconsult21-Jan-09 5:24 
GeneralRe: Dynamic Enum Creation Pin
Ennis Ray Lynch, Jr.21-Jan-09 6:07
Ennis Ray Lynch, Jr.21-Jan-09 6:07 
GeneralRe: Dynamic Enum Creation Pin
PIEBALDconsult21-Jan-09 6:58
mvePIEBALDconsult21-Jan-09 6:58 
GeneralRe: Dynamic Enum Creation Pin
Ennis Ray Lynch, Jr.21-Jan-09 7:10
Ennis Ray Lynch, Jr.21-Jan-09 7:10 
GeneralRe: Dynamic Enum Creation Pin
PIEBALDconsult21-Jan-09 7:15
mvePIEBALDconsult21-Jan-09 7:15 
GeneralRe: Dynamic Enum Creation Pin
Ennis Ray Lynch, Jr.21-Jan-09 7:16
Ennis Ray Lynch, Jr.21-Jan-09 7:16 
GeneralRe: Dynamic Enum Creation Pin
PIEBALDconsult21-Jan-09 7:50
mvePIEBALDconsult21-Jan-09 7:50 
QuestionDrawing only one rectangle, when i moving the mouse on a pictureBox Pin
tschmid8521-Jan-09 3:03
tschmid8521-Jan-09 3:03 
AnswerRe: Drawing only one rectangle, when i moving the mouse on a pictureBox Pin
DaveyM6921-Jan-09 3:39
professionalDaveyM6921-Jan-09 3:39 
AnswerRe: Drawing only one rectangle, when i moving the mouse on a pictureBox Pin
musefan21-Jan-09 5:15
musefan21-Jan-09 5:15 
you looking for a click drag style drawing?

if so then make a global rectangle, on mouse click set the .X and .Y locations of the rectangle. then with mouse mouse set the width and height of the rectangle based on the current mouse pos and the rectangle .X and .Y locations (mouse click point)

Then handle the onPaintEvent to draw the rectangle.

Oh you will need to force the picture box to repaint with each mouse move, i think PictureBox1.Invalidate() can do this for you

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.