Click here to Skip to main content
15,890,897 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionHow to determine Win32 API Window States like "covered by a modal sub window" or the "active parent window" via Win 32 API [modified] Pin
schwiemn14-Jan-08 11:38
schwiemn14-Jan-08 11:38 
QuestionA Beginners Thread Pin
bharathi_n_r11-Jan-08 20:16
bharathi_n_r11-Jan-08 20:16 
GeneralRe: A Beginners Thread Pin
Abhijit Jana13-Jan-08 1:19
professionalAbhijit Jana13-Jan-08 1:19 
GeneralRe: A Beginners Thread Pin
LongRange.Shooter1-Feb-08 9:50
LongRange.Shooter1-Feb-08 9:50 
QuestionHow to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
ctrlnick11-Jan-08 7:16
ctrlnick11-Jan-08 7:16 
AnswerRe: How to remotely connect multiple PCs(Windows OS based) computers from a single Mac Pin
LongRange.Shooter1-Feb-08 9:52
LongRange.Shooter1-Feb-08 9:52 
QuestionHow to control attribute initialization order for controls? Pin
RichardM110-Jan-08 11:32
RichardM110-Jan-08 11:32 
AnswerRe: How to control attribute initialization order for controls? Pin
Patrick Etc.10-Jan-08 12:23
Patrick Etc.10-Jan-08 12:23 
I suggest you don't attempt to control the order the properties are called in. In fact, this is a violation of the FxCop (.NET rules) specification - properties are supposed to be black box so that it doesn't MATTER what order you set them in.

That said, it is obviously unrealistic to expect properties to not affect each other. This is why the designer supports the BeginInit() and EndInit() methods from the ISupportInitialize interface. The designer will automatically insert BeginInit() before it sets any of your properties, and will call EndInit() when they're done.

What you can do with this is when BeginInit is set, set a flag in your code to true, and as long as it is true, simply update your backing field for the properties. Don't do any processing on them.

When EndInit() is called, unset your flag, and execute all of the code that should be executed to make all of your properties take effect.

All you need to do to support this behavior is add " : ISupportInitialize" to your class declaration and implement the appropriate methods.

Read more about it here[^]


It has become appallingly obvious that our technology has exceeded our humanity. - Albert Einstein

GeneralRe: How to control attribute initialization order for controls? Pin
RichardM110-Jan-08 12:29
RichardM110-Jan-08 12:29 
GeneralRe: How to control attribute initialization order for controls? Pin
Patrick Etc.10-Jan-08 12:31
Patrick Etc.10-Jan-08 12:31 
GeneralRe: How to control attribute initialization order for controls? Pin
RichardM110-Jan-08 12:48
RichardM110-Jan-08 12:48 
QuestionHow to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 8:12
szymon7910-Jan-08 8:12 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Dave Kreskowiak10-Jan-08 10:36
mveDave Kreskowiak10-Jan-08 10:36 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 10:57
szymon7910-Jan-08 10:57 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 11:19
RichardM110-Jan-08 11:19 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
szymon7910-Jan-08 11:43
szymon7910-Jan-08 11:43 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 12:13
RichardM110-Jan-08 12:13 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:14
sitebuilderLuc Pattyn10-Jan-08 12:14 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 12:20
RichardM110-Jan-08 12:20 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Patrick Etc.10-Jan-08 12:25
Patrick Etc.10-Jan-08 12:25 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:56
sitebuilderLuc Pattyn10-Jan-08 12:56 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 12:55
sitebuilderLuc Pattyn10-Jan-08 12:55 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:08
RichardM110-Jan-08 13:08 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
Luc Pattyn10-Jan-08 13:13
sitebuilderLuc Pattyn10-Jan-08 13:13 
GeneralRe: How to comunicate between two Windows Forms in BOTH directions???? Pin
RichardM110-Jan-08 13:30
RichardM110-Jan-08 13:30 

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.