Click here to Skip to main content
15,902,114 members
Home / Discussions / C#
   

C#

 
GeneralRe: service Pin
mnssr18-Jan-09 14:54
mnssr18-Jan-09 14:54 
GeneralRe: service Pin
Andy *M*19-Jan-09 4:45
Andy *M*19-Jan-09 4:45 
GeneralCP IGNORE: This is the THIRD time he's asked this. Pin
leckey17-Jan-09 15:23
leckey17-Jan-09 15:23 
GeneralRe: service Pin
#realJSOP18-Jan-09 0:50
professional#realJSOP18-Jan-09 0:50 
GeneralRe: service Pin
mnssr18-Jan-09 14:35
mnssr18-Jan-09 14:35 
QuestionProblem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 3:46
spiritboy17-Jan-09 3:46 
AnswerRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 3:48
spiritboy17-Jan-09 3:48 
AnswerRe: Problem with Open(or save)Filedialog [modified] Pin
Luc Pattyn17-Jan-09 4:03
sitebuilderLuc Pattyn17-Jan-09 4:03 
Hi,

the GUI Controls are not thread-safe; Windows requires that a Control only be
accessed by the thread that created it (normally the GUI thread for all of them, since
they typically are all linked in one big hierarchy). When other threads need to report
and show some results using the GUI, there is an Invoke mechanism, supported by
Control.InvokeRequired and the methods Control.Invoke() or BeginInvoke() methods.

if you fail to obey the rules, the GUI may seem fine for a while, for some of its Controls,
on some machines, on some operating system, but in general it is destined to fail.

final remarks:
- since NET2.0 illegal cross-thread calls throw an exception; there is a property to suppress those
and that is a very bad idea.
- also since NET2.0 there is a BackGroundWorker class that is useful in dealing with background work
needing to update the GUI.

Smile | :)
Luc Pattyn [Forum Guidelines] [My Articles]

I use ListBoxes for line-oriented text output (not TextBoxes), and PictureBoxes for pictures (not drawings).


modified on Friday, June 10, 2011 12:19 PM

GeneralRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 6:06
spiritboy17-Jan-09 6:06 
AnswerRe: Problem with Open(or save)Filedialog [modified] Pin
Luc Pattyn17-Jan-09 6:21
sitebuilderLuc Pattyn17-Jan-09 6:21 
GeneralRe: Problem with Open(or save)Filedialog Pin
spiritboy17-Jan-09 6:49
spiritboy17-Jan-09 6:49 
AnswerRe: Problem with Open(or save)Filedialog Pin
Luc Pattyn17-Jan-09 7:17
sitebuilderLuc Pattyn17-Jan-09 7:17 
QuestionSqlDataReader contents Pin
AmbitiousBeginner17-Jan-09 3:13
AmbitiousBeginner17-Jan-09 3:13 
AnswerRe: SqlDataReader contents Pin
Not Active17-Jan-09 3:20
mentorNot Active17-Jan-09 3:20 
QuestionSuppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
KarthikonIT17-Jan-09 2:33
KarthikonIT17-Jan-09 2:33 
AnswerRe: Suppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
Abhijit Jana17-Jan-09 3:11
professionalAbhijit Jana17-Jan-09 3:11 
GeneralRe: Suppress the msg - xls is already open. Reopening will cause any changes you made to be discarded. Pin
KarthikonIT17-Jan-09 3:57
KarthikonIT17-Jan-09 3:57 
QuestionDetect Idle activity in a webpage Pin
Mazen El Cheikh17-Jan-09 1:15
Mazen El Cheikh17-Jan-09 1:15 
AnswerRe: Detect Idle activity in a webpage Pin
Christian Graus17-Jan-09 1:49
protectorChristian Graus17-Jan-09 1:49 
GeneralRe: Detect Idle activity in a webpage Pin
Mazen El Cheikh17-Jan-09 23:27
Mazen El Cheikh17-Jan-09 23:27 
Question[Message Deleted] Pin
lavankumar16-Jan-09 22:59
lavankumar16-Jan-09 22:59 
AnswerRe: how to break Dongle key from hardware device Pin
Garth J Lancaster16-Jan-09 23:24
professionalGarth J Lancaster16-Jan-09 23:24 
AnswerRe: how to break Dongle key from hardware device Pin
bachuwarmahendar17-Jan-09 0:39
bachuwarmahendar17-Jan-09 0:39 
JokeRe: how to break Dongle key from hardware device Pin
Abhijit Jana17-Jan-09 0:51
professionalAbhijit Jana17-Jan-09 0:51 
QuestionHow to fill Data to gridview on Textchange event of Textbox Pin
sanpune16-Jan-09 20:56
sanpune16-Jan-09 20:56 

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.