Click here to Skip to main content
15,914,162 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to desply Output in CommandPrompt....In WINDOWS APPLICATION Pin
pashitech12-Feb-07 20:10
pashitech12-Feb-07 20:10 
GeneralRe: How to desply Output in CommandPrompt....In WINDOWS APPLICATION Pin
Niiiissssshhhhhuuuuu12-Feb-07 20:27
Niiiissssshhhhhuuuuu12-Feb-07 20:27 
GeneralRe: How to desply Output in CommandPrompt....In WINDOWS APPLICATION Pin
pashitech13-Feb-07 18:02
pashitech13-Feb-07 18:02 
AnswerRe: How to desply Output in CommandPrompt....In WINDOWS APPLICATION Pin
Rahul.RK12-Feb-07 21:06
Rahul.RK12-Feb-07 21:06 
Questiondragging line Pin
HexaDeveloper12-Feb-07 19:21
HexaDeveloper12-Feb-07 19:21 
AnswerRe: dragging line Pin
Christian Graus12-Feb-07 19:26
protectorChristian Graus12-Feb-07 19:26 
GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 19:34
HexaDeveloper12-Feb-07 19:34 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 19:43
protectorChristian Graus12-Feb-07 19:43 
What do you mean, two images ? What do you want to do ?

If you want to draw two lines that persist, you need to handle the paint event, then when you call Invalidate(), the paint event will redraw your form. Store a bool to say if the mouse button is down, and two points, one for each end of the line. Set both to the current mouse pos when the mouse goes down, set one to the mouse position when it moves, and in your paint event, draw a line between them, if the mouse is down ( via that flag you set )


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 20:04
HexaDeveloper12-Feb-07 20:04 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 20:42
protectorChristian Graus12-Feb-07 20:42 
GeneralRe: dragging line Pin
HexaDeveloper12-Feb-07 21:09
HexaDeveloper12-Feb-07 21:09 
GeneralRe: dragging line Pin
Christian Graus12-Feb-07 21:25
protectorChristian Graus12-Feb-07 21:25 
QuestionNeed help with the Timer Control! Please! Pin
vitaco12-Feb-07 19:18
vitaco12-Feb-07 19:18 
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 19:24
protectorChristian Graus12-Feb-07 19:24 
QuestionRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 19:50
vitaco12-Feb-07 19:50 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 20:23
Shajeel12-Feb-07 20:23 
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 20:57
protectorChristian Graus12-Feb-07 20:57 
QuestionRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 21:25
vitaco12-Feb-07 21:25 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 21:44
Shajeel12-Feb-07 21:44 
AnswerRe: Need help with the Timer Control! Please! Pin
Shajeel12-Feb-07 22:28
Shajeel12-Feb-07 22:28 
GeneralRe: Need help with the Timer Control! Please! Pin
vitaco12-Feb-07 23:12
vitaco12-Feb-07 23:12 
AnswerRe: Need help with the Timer Control! Please! Pin
Christian Graus12-Feb-07 22:09
protectorChristian Graus12-Feb-07 22:09 
GeneralRe: Need help with the Timer Control! Please! Pin
S. Senthil Kumar13-Feb-07 4:34
S. Senthil Kumar13-Feb-07 4:34 
QuestionActiveX control in C#.Net Pin
free_soul42412-Feb-07 18:53
free_soul42412-Feb-07 18:53 
AnswerRe: ActiveX control in C#.Net Pin
Christian Graus12-Feb-07 19:24
protectorChristian Graus12-Feb-07 19:24 

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.