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

C#

 
Questiondrawing gone Pin
staticv18-Jan-09 0:49
staticv18-Jan-09 0:49 
AnswerRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 0:56
Mustafa Ismail Mustafa18-Jan-09 0:56 
GeneralRe: drawing gone Pin
staticv18-Jan-09 1:19
staticv18-Jan-09 1:19 
GeneralRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 1:25
Mustafa Ismail Mustafa18-Jan-09 1:25 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:34
Colin Angus Mackay18-Jan-09 1:34 
GeneralRe: drawing gone Pin
Guffa18-Jan-09 1:57
Guffa18-Jan-09 1:57 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 2:03
Colin Angus Mackay18-Jan-09 2:03 
AnswerRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:00
Colin Angus Mackay18-Jan-09 1:00 
Because what you have drawn does not persist on the control you drew it on.

Basically, when you move your mouse off the button, the button redraws itself, thus overwriting what you drew.

If you want to draw on things you have to do it by overriding the OnPaint method. You have to remember what you drew before because each time the control is invalidated you have to draw it again (The system will call OnPaint each time the control is invalidated)

* Developer Day Scotland 2 - Free community conference
* The Blog of Colin Angus Mackay


Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.

AnswerRe: drawing gone Pin
Christian Graus18-Jan-09 1:23
protectorChristian Graus18-Jan-09 1:23 
GeneralRe: drawing gone Pin
Giorgi Dalakishvili18-Jan-09 1:32
mentorGiorgi Dalakishvili18-Jan-09 1:32 
GeneralRe: drawing gone Pin
Christian Graus18-Jan-09 1:37
protectorChristian Graus18-Jan-09 1:37 
GeneralRe: drawing gone Pin
staticv18-Jan-09 2:02
staticv18-Jan-09 2:02 
Questionmonitor network status Pin
George_George18-Jan-09 0:30
George_George18-Jan-09 0:30 
AnswerRe: monitor network status Pin
Ravi Bhavnani18-Jan-09 7:58
professionalRavi Bhavnani18-Jan-09 7:58 
GeneralRe: monitor network status Pin
George_George18-Jan-09 20:24
George_George18-Jan-09 20:24 
AnswerRe: monitor network status Pin
Hamid_RT22-Jan-09 23:26
Hamid_RT22-Jan-09 23:26 
GeneralRe: monitor network status Pin
George_George4-Feb-09 22:38
George_George4-Feb-09 22:38 
GeneralRe: monitor network status Pin
Hamid_RT5-Feb-09 21:50
Hamid_RT5-Feb-09 21:50 
GeneralRe: monitor network status Pin
George_George7-Feb-09 2:10
George_George7-Feb-09 2:10 
Questiondebugging managed code and native code together Pin
George_George17-Jan-09 23:58
George_George17-Jan-09 23:58 
AnswerRe: debugging managed code and native code together Pin
Abhijit Jana18-Jan-09 0:06
professionalAbhijit Jana18-Jan-09 0:06 
GeneralRe: debugging managed code and native code together Pin
George_George18-Jan-09 1:31
George_George18-Jan-09 1:31 
GeneralRe: debugging managed code and native code together Pin
Abhijit Jana18-Jan-09 1:39
professionalAbhijit Jana18-Jan-09 1:39 
GeneralRe: debugging managed code and native code together Pin
George_George18-Jan-09 1:58
George_George18-Jan-09 1:58 
AnswerRe: debugging managed code and native code together Pin
Alan Balkany19-Jan-09 3:52
Alan Balkany19-Jan-09 3:52 

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.