Click here to Skip to main content
15,890,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Image size Pin
Luc Pattyn18-Jan-09 9:10
sitebuilderLuc Pattyn18-Jan-09 9:10 
QuestionWindows 7, SetWindowPos, and AnimateWindow Pin
brian.shapiro18-Jan-09 6:10
brian.shapiro18-Jan-09 6:10 
QuestionWhy is this not CLS compliant? Pin
#realJSOP18-Jan-09 2:48
mve#realJSOP18-Jan-09 2:48 
AnswerRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 3:46
sitebuilderNicholas Butler18-Jan-09 3:46 
GeneralRe: Why is this not CLS compliant? Pin
#realJSOP18-Jan-09 4:38
mve#realJSOP18-Jan-09 4:38 
GeneralRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 5:29
sitebuilderNicholas Butler18-Jan-09 5:29 
QuestionProgramming Web In C# Pin
trinm198718-Jan-09 1:56
trinm198718-Jan-09 1:56 
Questiondrawing gone Pin
staticv18-Jan-09 0:49
staticv18-Jan-09 0:49 
Hey, I have button in a Form, I implemented its Click handler as when its clicked an X is drawn.... I obtained the Graphics using the CreateGraphics() method of the button used it to call the DrawLine methods..

When I click it, it draws the line properly but when I move the mouse outside the button's boundary it vanishes. why?

The code for the click event handler is

private void button1_Click(object sender, EventArgs e)
      {
              Graphics g = button1.CreateGraphics();
              g.DrawLine(new Pen(Color.Black), 20, 20, 200, 200);
              g.DrawLine(new Pen(Color.Black), 200, 20, 20, 200);
      }


Top Web Hosting Providers[^]

Do, or do not. There is no 'try'.

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 
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 

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.