Click here to Skip to main content
15,886,083 members
Home / Discussions / C#
   

C#

 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 0:31
Henry Minute14-Jun-09 0:31 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 3:05
SimpleData14-Jun-09 3:05 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 3:13
Henry Minute14-Jun-09 3:13 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 3:36
SimpleData14-Jun-09 3:36 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 3:40
Henry Minute14-Jun-09 3:40 
AnswerRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 4:14
sitebuilderLuc Pattyn14-Jun-09 4:14 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 4:43
SimpleData14-Jun-09 4:43 
GeneralRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 4:49
sitebuilderLuc Pattyn14-Jun-09 4:49 
SimpleData wrote:
so all threads are allowed to touch all the Controls.


That is absolutely false. All CheckForIllegalCrossThreadCalls=false; does is disable the checking (returning to the unhealthy situation that existed in .NET 1.0/1.1), it does not ALLOW anything. Controls are not thread-safe and should be touched only by the thread that created them, and since all Controls are linked somehow (through Control collections, Form Z-Order, etc) that basically means the initial/main/GUI thread is the only one that can touch them. Violating this rule may and will result in abnormal app behavior, typically the GUI freezing pretty soon (or after a possibly long while, but failure is guaranteed).

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

DISCLAIMER: this message may have been modified by others; it may no longer reflect what I intended, and may contain bad advice; use at your own risk and with extreme care.

GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 4:52
SimpleData14-Jun-09 4:52 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 4:58
mveDave Kreskowiak14-Jun-09 4:58 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 4:55
mveDave Kreskowiak14-Jun-09 4:55 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 5:07
SimpleData14-Jun-09 5:07 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak14-Jun-09 5:08
mveDave Kreskowiak14-Jun-09 5:08 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 5:13
SimpleData14-Jun-09 5:13 
GeneralRe: Closing and recreating a form Pin
DidiKunz14-Jun-09 7:29
DidiKunz14-Jun-09 7:29 
GeneralRe: Closing and recreating a form Pin
SimpleData14-Jun-09 8:19
SimpleData14-Jun-09 8:19 
GeneralRe: Closing and recreating a form Pin
Dave Kreskowiak15-Jun-09 0:39
mveDave Kreskowiak15-Jun-09 0:39 
GeneralRe: Closing and recreating a form Pin
SimpleData15-Jun-09 1:09
SimpleData15-Jun-09 1:09 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 9:57
Henry Minute14-Jun-09 9:57 
GeneralRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 10:08
sitebuilderLuc Pattyn14-Jun-09 10:08 
GeneralRe: Closing and recreating a form Pin
Henry Minute14-Jun-09 10:17
Henry Minute14-Jun-09 10:17 
GeneralRe: Closing and recreating a form Pin
Luc Pattyn14-Jun-09 10:23
sitebuilderLuc Pattyn14-Jun-09 10:23 
GeneralRe: Closing and recreating a form Pin
SimpleData15-Jun-09 1:09
SimpleData15-Jun-09 1:09 
AnswerRe: Closing and recreating a form Pin
Lutosław15-Jun-09 23:21
Lutosław15-Jun-09 23:21 
GeneralRe: Closing and recreating a form Pin
SimpleData15-Jun-09 23:40
SimpleData15-Jun-09 23:40 

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.