Click here to Skip to main content
15,920,633 members
Home / Discussions / C#
   

C#

 
QuestionClick Event Problem Pin
Semion_N9-Feb-07 7:36
Semion_N9-Feb-07 7:36 
AnswerRe: Click Event Problem Pin
FocusedWolf9-Feb-07 7:51
FocusedWolf9-Feb-07 7:51 
GeneralRe: Click Event Problem Pin
Semion_N9-Feb-07 8:49
Semion_N9-Feb-07 8:49 
GeneralRe: Click Event Problem Pin
FocusedWolf9-Feb-07 8:59
FocusedWolf9-Feb-07 8:59 
GeneralRe: Click Event Problem Pin
Semion_N9-Feb-07 9:15
Semion_N9-Feb-07 9:15 
GeneralRe: Click Event Problem Pin
FocusedWolf9-Feb-07 9:19
FocusedWolf9-Feb-07 9:19 
GeneralRe: Click Event Problem Pin
Semion_N9-Feb-07 9:21
Semion_N9-Feb-07 9:21 
GeneralRe: Click Event Problem Pin
FocusedWolf9-Feb-07 9:46
FocusedWolf9-Feb-07 9:46 
ok i figured it out :P

zgc.Invalidate();

add that to the end of your createGraph function.

it tells that control that it needs to be invalidated cause its data was changed. its really the control makers fault here... they should of done that automatically when the data is changed :P

if you ever get problems...

zgc.Refresh(); this can do it and force the repaint to happen right away, but i think it might be slower... its better with invalidate :P

their are other things like

zgc.SuspendLayout()
make lots of changes to the control
zgc.ResumeLayout()

if you encounter lots of flickering or whatnot ... these functions exist in all controls that inherit system.control or system.usercontrol fyi ...like if you ever get this problem in the future :P


i was tipped off to the problem when while stepping through with the debugger that i saw the button working properly... and it was because the whole form was getting invalidated cause of the debugger kept on moving ontop of the window with each refresh..or something...
GeneralRe: Click Event Problem Pin
Semion_N9-Feb-07 9:55
Semion_N9-Feb-07 9:55 
GeneralRe: Click Event Problem Pin
FocusedWolf9-Feb-07 11:44
FocusedWolf9-Feb-07 11:44 
QuestionInserting text at the current location in a text box Pin
Wolf929-Feb-07 7:21
Wolf929-Feb-07 7:21 
AnswerRe: Inserting text at the current location in a text box Pin
Stefan Troschuetz9-Feb-07 7:28
Stefan Troschuetz9-Feb-07 7:28 
QuestionMethod I wrote to safely parse data. Pin
siccsyc9-Feb-07 5:50
siccsyc9-Feb-07 5:50 
AnswerRe: Method I wrote to safely parse data. Pin
led mike9-Feb-07 8:34
led mike9-Feb-07 8:34 
GeneralRe: Method I wrote to safely parse data. Pin
siccsyc9-Feb-07 9:44
siccsyc9-Feb-07 9:44 
QuestionHow can i check if a server exists? Pin
sharpiesharpie9-Feb-07 5:45
sharpiesharpie9-Feb-07 5:45 
AnswerRe: How can i check if a server exists? Pin
Guffa9-Feb-07 7:23
Guffa9-Feb-07 7:23 
GeneralRe: How can i check if a server exists? Pin
sharpiesharpie9-Feb-07 8:05
sharpiesharpie9-Feb-07 8:05 
GeneralRe: How can i check if a server exists? Pin
Dave Kreskowiak9-Feb-07 9:13
mveDave Kreskowiak9-Feb-07 9:13 
AnswerRe: How can i check if a server exists? Pin
Guffa9-Feb-07 13:08
Guffa9-Feb-07 13:08 
Questionhow to enumarate SQL Server local instances in C#? Pin
bouli9-Feb-07 3:52
bouli9-Feb-07 3:52 
AnswerRe: how to enumarate SQL Server local instances in C#? Pin
Blue_Boy9-Feb-07 4:10
Blue_Boy9-Feb-07 4:10 
GeneralRe: how to enumarate SQL Server local instances in C#? Pin
bouli9-Feb-07 4:29
bouli9-Feb-07 4:29 
GeneralRe: how to enumarate SQL Server local instances in C#? Pin
Blue_Boy9-Feb-07 4:33
Blue_Boy9-Feb-07 4:33 
GeneralRe: how to enumarate SQL Server local instances in C#? Pin
bouli9-Feb-07 4:44
bouli9-Feb-07 4:44 

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.