Click here to Skip to main content
15,917,455 members
Home / Discussions / C#
   

C#

 
QuestionI'M SO CONFUSED??? Pin
Member 23224411-Oct-05 11:48
Member 23224411-Oct-05 11:48 
AnswerRe: I'M SO CONFUSED??? Pin
Christian Graus1-Oct-05 19:42
protectorChristian Graus1-Oct-05 19:42 
QuestionWant to cycle through a pen Array Pin
Anonymous1-Oct-05 9:16
Anonymous1-Oct-05 9:16 
AnswerRe: Want to cycle through a pen Array Pin
Robert Rohde1-Oct-05 10:20
Robert Rohde1-Oct-05 10:20 
GeneralRe: Want to cycle through a pen Array Pin
Anonymous1-Oct-05 10:30
Anonymous1-Oct-05 10:30 
GeneralRe: Want to cycle through a pen Array Pin
Robert Rohde1-Oct-05 11:45
Robert Rohde1-Oct-05 11:45 
GeneralRe: Want to cycle through a pen Array Pin
Member 23224411-Oct-05 11:53
Member 23224411-Oct-05 11:53 
QuestionBOOL FLAG Problem in Paint Handler Pin
Anonymous1-Oct-05 7:28
Anonymous1-Oct-05 7:28 
I have code that will draw a line on a form. When I hard code it to draw the line it works fine, meaning every time
the form launches a line is drawn. Now i want to set a bool flag and pass it in as a conditional statement to drawn the
line when the Button1 is clicked. I know I'm missing something obvious.



public class Form1 : System.Windows.Forms.Form
{
//Member fields.
private bool drawLine1 = false;..............etc
///////////////////////////////////////////////////////////////////////////


private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
{
if(drawLine1) //DRAW LINE 1 IS ALWAYS FALSE.....
DrawComplexNumber(e.Graphics);.............etc


//////////////////////////////////////////////////////////////////////////

private void Button_1OK_Click(object sender, System.EventArgs e)
{
drawLine1 = !drawLine1;
Invalidate();
}


How do I fix it? Please -- need a "nuts and bolts" answer, not an "abstract" explanation. Thanks a lot in advance....
AnswerRe: BOOL FLAG Problem in Paint Handler Pin
Robert Rohde1-Oct-05 7:42
Robert Rohde1-Oct-05 7:42 
GeneralRe: BOOL FLAG Problem in Paint Handler Pin
Anonymous1-Oct-05 9:11
Anonymous1-Oct-05 9:11 
AnswerRe: BOOL FLAG Problem in Paint Handler Pin
Mahesh Kumar V K2-Oct-05 23:16
Mahesh Kumar V K2-Oct-05 23:16 
QuestionProperty Builder? Pin
Sled Dog1-Oct-05 5:46
Sled Dog1-Oct-05 5:46 
AnswerRe: Property Builder? Pin
David Stone1-Oct-05 19:38
sitebuilderDavid Stone1-Oct-05 19:38 
GeneralRe: Property Builder? Pin
Sled Dog2-Oct-05 2:38
Sled Dog2-Oct-05 2:38 
QuestionResize the user defined control Pin
Ming Luo1-Oct-05 5:45
Ming Luo1-Oct-05 5:45 
AnswerRe: Resize the user defined control Pin
Robert Rohde1-Oct-05 7:50
Robert Rohde1-Oct-05 7:50 
Questionmodify Lunar Lander game Pin
nume1-Oct-05 5:41
nume1-Oct-05 5:41 
AnswerRe: modify Lunar Lander game Pin
Robert Rohde1-Oct-05 7:56
Robert Rohde1-Oct-05 7:56 
Questionpanel shape hotspots Pin
michaelreian1-Oct-05 4:31
michaelreian1-Oct-05 4:31 
QuestionHost a Remote Object in a Windows Service Pin
akshayswaroop1-Oct-05 4:04
akshayswaroop1-Oct-05 4:04 
QuestionDatagrid_pageindexchanged event is not firing Pin
Deepml1-Oct-05 2:30
Deepml1-Oct-05 2:30 
QuestionStructs or Classes Pin
Heinz_30-Sep-05 18:00
Heinz_30-Sep-05 18:00 
AnswerRe: Structs or Classes Pin
Jose Lamas Rios30-Sep-05 18:31
Jose Lamas Rios30-Sep-05 18:31 
AnswerRe: Structs or Classes Pin
Mystic_Unicorn30-Sep-05 22:16
Mystic_Unicorn30-Sep-05 22:16 
GeneralRe: Structs or Classes Pin
Tim Smith1-Oct-05 16:35
Tim Smith1-Oct-05 16:35 

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.