Click here to Skip to main content
15,890,438 members
Home / Discussions / C#
   

C#

 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
Luc Pattyn11-Dec-10 7:02
sitebuilderLuc Pattyn11-Dec-10 7:02 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
PIEBALDconsult11-Dec-10 16:59
mvePIEBALDconsult11-Dec-10 16:59 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
Luc Pattyn11-Dec-10 17:13
sitebuilderLuc Pattyn11-Dec-10 17:13 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
PIEBALDconsult12-Dec-10 4:21
mvePIEBALDconsult12-Dec-10 4:21 
AnswerRe: setting label.Text by the SqlDataReader's value Pin
Luc Pattyn12-Dec-10 5:34
sitebuilderLuc Pattyn12-Dec-10 5:34 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
PIEBALDconsult12-Dec-10 5:48
mvePIEBALDconsult12-Dec-10 5:48 
GeneralRe: setting label.Text by the SqlDataReader's value Pin
Luc Pattyn12-Dec-10 5:55
sitebuilderLuc Pattyn12-Dec-10 5:55 
QuestionGUI User Control does not repaint it self properly after resizing it... Pin
Shultz 210-Dec-10 22:13
Shultz 210-Dec-10 22:13 
Hi
I am working on Windows 7 x64, VS2008, FW 3.5, C# only.

I have developed a pretty complex GUI User Control, involving many UserControls planting inside table layout with in table layout with in tab layout control etc.

When starting my form, holding my complex User Control, in maximize mode all looks fine.
When starting to shrink it and then resize it (dragging the mouse from bottom right corner...) the 'deep' user controls and their components starts to be twisted and do not repaint properly.
Some of them are left half painted, showing leftovers of earlier refreshment actions happen on their pixels...

I have tried to test it and initiate (using a button) a refresh, invalidate and perform layout actions on my top UserControl, as well as on my deep one(s), but nothing helps.
I have these 'deep' user control(s) planted in other places in my GUI (less complex one I admit) and they all work properly on resize over there.

My questions:
1. Does any one have any explanation why this is going on?
2. Is there a guide line when designing a GUI in C# (or in .NET at all..) that says not to exaggerate in nesting up controls within layouts? Is there a particular overhead for this increased nesting?
3. Are there any other refresh/repaint methods that I might initiate that can fix the situation?

Thanks a'head
The Shultz.
AnswerRe: GUI User Control does not repaint it self properly after resizing it... Pin
Luc Pattyn10-Dec-10 23:41
sitebuilderLuc Pattyn10-Dec-10 23:41 
GeneralRe: GUI User Control does not repaint it self properly after resizing it... Pin
Shultz 211-Dec-10 0:18
Shultz 211-Dec-10 0:18 
AnswerRe: GUI User Control does not repaint it self properly after resizing it... Pin
Keith Barrow11-Dec-10 2:27
professionalKeith Barrow11-Dec-10 2:27 
GeneralRe: GUI User Control does not repaint it self properly after resizing it... Pin
Shultz 211-Dec-10 4:59
Shultz 211-Dec-10 4:59 
AnswerRe: GUI User Control does not repaint it self properly after resizing it... Pin
Dr.Walt Fair, PE11-Dec-10 5:29
professionalDr.Walt Fair, PE11-Dec-10 5:29 
GeneralRe: GUI User Control does not repaint it self properly after resizing it... Pin
Shultz 211-Dec-10 11:14
Shultz 211-Dec-10 11:14 
QuestionSaving a word document(2000 to 2010) to xml Pin
Haim Nachum10-Dec-10 6:13
Haim Nachum10-Dec-10 6:13 
AnswerRe: Saving a word document(2000 to 2010) to xml Pin
Not Active10-Dec-10 10:26
mentorNot Active10-Dec-10 10:26 
AnswerRe: Saving a word document(2000 to 2010) to xml Pin
Yvan Rodrigues12-Dec-10 14:18
professionalYvan Rodrigues12-Dec-10 14:18 
GeneralRe: Saving a word document(2000 to 2010) to xml Pin
Haim Nachum12-Dec-10 22:57
Haim Nachum12-Dec-10 22:57 
QuestionSwitch with multiple variables Pin
jadughar10-Dec-10 4:24
jadughar10-Dec-10 4:24 
AnswerRe: Switch with multiple variables Pin
Luc Pattyn10-Dec-10 4:29
sitebuilderLuc Pattyn10-Dec-10 4:29 
GeneralRe: Switch with multiple variables Pin
jadughar10-Dec-10 5:01
jadughar10-Dec-10 5:01 
GeneralRe: Switch with multiple variables Pin
Luc Pattyn10-Dec-10 5:07
sitebuilderLuc Pattyn10-Dec-10 5:07 
GeneralRe: Switch with multiple variables Pin
jadughar10-Dec-10 5:43
jadughar10-Dec-10 5:43 
GeneralRe: Switch with multiple variables Pin
Luc Pattyn10-Dec-10 5:45
sitebuilderLuc Pattyn10-Dec-10 5:45 
GeneralRe: Switch with multiple variables Pin
PIEBALDconsult10-Dec-10 12:08
mvePIEBALDconsult10-Dec-10 12:08 

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.