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

C#

 
AnswerRe: Form Question Pin
MasterSharp18-Oct-07 10:36
MasterSharp18-Oct-07 10:36 
AnswerRe: Form Question Pin
Nouman Bhatti18-Oct-07 22:15
Nouman Bhatti18-Oct-07 22:15 
AnswerRe: Form Question Pin
MasterSharp19-Oct-07 3:21
MasterSharp19-Oct-07 3:21 
QuestionI can't make Debugger.Log() work Pin
werpa18-Oct-07 7:11
werpa18-Oct-07 7:11 
AnswerRe: I can't make Debugger.Log() work Pin
TJoe18-Oct-07 7:57
TJoe18-Oct-07 7:57 
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 
Hi again,

this is similar to your previous topic:

1. yes, when not running on the thread that created the Control, you must use
Control.InvokeRequired and Control.Invoke()

2. the thing your thread is not allowed to do should be in the ELSE part of the
if(Control.InvokeRequired) which means it does not execute on the
wrong thread, but it does execute on the right thread. The way you wrote it, it
would be executed twice.

If this wrong way of doing Control accesses does not throw an InvalidOperationException
(with some "illegal cross-thread operation" message) it indicates that you (or your
Control provider):
- either are running on an older .NET version (1.0 or 1.1), if so, why?
- or have done something to suppress exceptions (e.g. set Control.CheckForIllegalCrossThreadCalls false, very bad idea)
- or have done something to ignore exceptions (e.g. an empty catch block, very very bad idea)

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]


this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google


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

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.