Click here to Skip to main content
15,914,327 members
Home / Discussions / Windows Forms
   

Windows Forms

 
JokeRe: How windows installer creates copy of msi with new msi file name? Pin
Baeltazor21-May-09 18:49
Baeltazor21-May-09 18:49 
QuestionEmbeding windows controls to webforms Pin
Ahamed Azeem4-May-09 21:09
Ahamed Azeem4-May-09 21:09 
AnswerRe: Embeding windows controls to webforms Pin
Dave Kreskowiak5-May-09 3:41
mveDave Kreskowiak5-May-09 3:41 
QuestionRebarWindow change child window posittion inside the reband control Pin
benjamin234-May-09 14:31
benjamin234-May-09 14:31 
QuestionWord automation report, chart, images Pin
flyingbaobao2-May-09 20:07
flyingbaobao2-May-09 20:07 
AnswerRe: Word automation report, chart, images Pin
Mycroft Holmes2-May-09 20:47
professionalMycroft Holmes2-May-09 20:47 
GeneralRe: Word automation report, chart, images Pin
flyingbaobao3-May-09 4:03
flyingbaobao3-May-09 4:03 
QuestionBegin/EndUpdate() and Suspend/ResumeLayout() Opinions appreciated. Pin
Henry Minute2-May-09 11:49
Henry Minute2-May-09 11:49 
I am developing a UserControl for an Application I'm playing with. It is a viewer for a collection of Thingies ( ThingyListViewer ).

When a new ThingyCollection is assigned, ThingyListViewer clears its Controls collection and for each Thingy in the new collection a ThingyViewer control is created and added to the Controls collection with its Dock property set to Top.

As you can imagine this looks pretty ugly during the change. So, I implemented BeginUpdate() and EndUpdate() methods using SendMessage and WM_SETREDRAW. However, because Controls are being added I also had to use SuspendLayout() and ResumeLayout().

Here's where I'd appreciate opinions. Since BeginUpdate and SuspendLayout are always used together, ditto for the other two, I have put SuspendLayout in my BeginUpdate method and ResumeLayout in my EndUpdate method.

Is this valid, or will it come back and bite me at some stage, or in certain circumstances?

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: Begin/EndUpdate() and Suspend/ResumeLayout() Opinions appreciated. Pin
Mycroft Holmes2-May-09 20:51
professionalMycroft Holmes2-May-09 20:51 
GeneralRe: Begin/EndUpdate() and Suspend/ResumeLayout() Opinions appreciated. Pin
Henry Minute3-May-09 1:41
Henry Minute3-May-09 1:41 
GeneralWinforms deployment? [Issue identified] [modified] Pin
Trollslayer2-May-09 11:13
mentorTrollslayer2-May-09 11:13 
GeneralRe: Winforms deployment? Pin
Pete O'Hanlon2-May-09 11:17
mvePete O'Hanlon2-May-09 11:17 
GeneralRe: Winforms deployment? Pin
Trollslayer2-May-09 11:26
mentorTrollslayer2-May-09 11:26 
GeneralRe: Winforms deployment? Pin
Douglas Troy2-May-09 11:37
Douglas Troy2-May-09 11:37 
GeneralRe: Winforms deployment? Pin
Trollslayer2-May-09 11:47
mentorTrollslayer2-May-09 11:47 
GeneralRe: Winforms deployment? Pin
Douglas Troy2-May-09 11:53
Douglas Troy2-May-09 11:53 
GeneralRe: Winforms deployment? Pin
Henry Minute2-May-09 12:02
Henry Minute2-May-09 12:02 
GeneralRe: Winforms deployment? Pin
Trollslayer2-May-09 12:16
mentorTrollslayer2-May-09 12:16 
GeneralRe: Winforms deployment? Pin
Douglas Troy2-May-09 11:25
Douglas Troy2-May-09 11:25 
GeneralRe: Winforms deployment? Pin
Trollslayer2-May-09 11:28
mentorTrollslayer2-May-09 11:28 
GeneralRe: Winforms deployment? Pin
Douglas Troy2-May-09 11:29
Douglas Troy2-May-09 11:29 
GeneralRe: Winforms deployment? Pin
Nish Nishant2-May-09 11:57
sitebuilderNish Nishant2-May-09 11:57 
GeneralRe: Winforms deployment? Pin
Henry Minute2-May-09 11:56
Henry Minute2-May-09 11:56 
GeneralRe: Winforms deployment? Pin
Dr.Walt Fair, PE2-May-09 11:57
professionalDr.Walt Fair, PE2-May-09 11:57 
GeneralRe: Winforms deployment? Pin
dybs4-May-09 15:48
dybs4-May-09 15:48 

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.