Click here to Skip to main content
15,911,891 members
Home / Discussions / C#
   

C#

 
GeneralRe: I can't make Debugger.Log() work Pin
werpa18-Oct-07 8:05
werpa18-Oct-07 8:05 
QuestionForm display isn't refreshing Pin
gizmokaka18-Oct-07 7:04
gizmokaka18-Oct-07 7:04 
AnswerRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 7:35
sitebuilderLuc Pattyn18-Oct-07 7:35 
GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 12:54
gizmokaka18-Oct-07 12:54 
GeneralRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 12:58
sitebuilderLuc Pattyn18-Oct-07 12:58 
GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 13:03
gizmokaka18-Oct-07 13:03 
GeneralRe: Form display isn't refreshing Pin
Luc Pattyn18-Oct-07 13:16
sitebuilderLuc Pattyn18-Oct-07 13:16 
AnswerRe: Form display isn't refreshing Pin
Patrick Etc.18-Oct-07 8:20
Patrick Etc.18-Oct-07 8:20 
There's only one thing missing from your code:

You need to be calling zgc.Invalidate() or zgc.Refresh() after calling AxisChange(). It won't repaint anything until something tells it to; this is one of the ways ZedGraph maintains performance. It doesn't refresh willy-nilly. All the AxisChange() call does is cause the ZedGraphControl to recalculate what the axis limits SHOULD be; it doesn't cause the control to actually display them.

So all you have to do is call Refresh() on the control Smile | :) Your threading looks fine. You need that Invoke() there if you're going to be running the code on a separate thread. You should call "return" inside that if() statement after calling Invoke() though, otherwise it will continue to run the code below, as Luc pointed out.


"If you think of yourselves as helpless and ineffectual, it is certain that you will create a despotic government to be your master. The wise despot, therefore, maintains among his subjects a popular sense that they are helpless and ineffectual."
- Frank Herbert

GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 13:01
gizmokaka18-Oct-07 13:01 
GeneralRe: Form display isn't refreshing Pin
gizmokaka18-Oct-07 13:04
gizmokaka18-Oct-07 13:04 
GeneralRe: Form display isn't refreshing Pin
Patrick Etc.18-Oct-07 14:14
Patrick Etc.18-Oct-07 14:14 
QuestionAdd/Remove Network Protocols Pin
Harkamal Singh18-Oct-07 7:03
Harkamal Singh18-Oct-07 7:03 
AnswerRe: Add/Remove Network Protocols Pin
kingletas18-Oct-07 7:27
kingletas18-Oct-07 7:27 
GeneralRe: Add/Remove Network Protocols Pin
Harkamal Singh18-Oct-07 23:42
Harkamal Singh18-Oct-07 23:42 
AnswerRe: Add/Remove Network Protocols Pin
kingletas19-Oct-07 5:31
kingletas19-Oct-07 5:31 
QuestionBind data into textbox Pin
zafax_18-Oct-07 6:47
zafax_18-Oct-07 6:47 
AnswerRe: Bind data into textbox Pin
zafax_18-Oct-07 6:54
zafax_18-Oct-07 6:54 
Question3G/GPRS Connection [modified] Pin
Eurfyl18-Oct-07 5:52
Eurfyl18-Oct-07 5:52 
AnswerRe: 3G/GPRS Connection Pin
led mike18-Oct-07 6:30
led mike18-Oct-07 6:30 
GeneralRe: 3G/GPRS Connection Pin
Eurfyl18-Oct-07 11:47
Eurfyl18-Oct-07 11:47 
GeneralRe: 3G/GPRS Connection Pin
ekynox18-Oct-07 12:38
ekynox18-Oct-07 12:38 
AnswerEach modem Pin
Ennis Ray Lynch, Jr.18-Oct-07 9:57
Ennis Ray Lynch, Jr.18-Oct-07 9:57 
QuestionExtracting messages from outlook inbox and transffering it to a documents folder Pin
Suj_7818-Oct-07 5:50
Suj_7818-Oct-07 5:50 
QuestionGet data from database and equalize to IList Pin
dataminers18-Oct-07 5:21
dataminers18-Oct-07 5:21 
AnswerRe: Get data from database and equalize to IList Pin
led mike18-Oct-07 6:25
led mike18-Oct-07 6:25 

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.