Click here to Skip to main content
15,881,803 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Why are my status and progress bars not updating Pin
Luc Pattyn4-Sep-09 13:45
sitebuilderLuc Pattyn4-Sep-09 13:45 
GeneralRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 13:56
Sonhospa4-Sep-09 13:56 
GeneralRe: Why are my status and progress bars not updating Pin
Luc Pattyn4-Sep-09 14:15
sitebuilderLuc Pattyn4-Sep-09 14:15 
NewsRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 14:35
Sonhospa4-Sep-09 14:35 
GeneralRe: Why are my status and progress bars not updating Pin
Christian Graus4-Sep-09 14:45
protectorChristian Graus4-Sep-09 14:45 
GeneralRe: Why are my status and progress bars not updating Pin
Sonhospa4-Sep-09 15:24
Sonhospa4-Sep-09 15:24 
GeneralRe: Why are my status and progress bars not updating [modified] Pin
Luc Pattyn4-Sep-09 15:37
sitebuilderLuc Pattyn4-Sep-09 15:37 
QuestionResizing a control Pin
EliottA4-Sep-09 9:09
EliottA4-Sep-09 9:09 
I have a Menu Control that I populate dynamically and resize based off selections.
The resizing is an issue and is very sloppy, so I figured I would SuspendLayout(), change the width of my control and ResumeLayout()

For some reason whenever I call SuspendLayout(), my control's width is never changed.

Is there something I'm missing?

Example Code:
Some side notes: An initial SuspendLayout() call applies to the Menu control, but not it's children or controls embedded within the Menu children.

 'assume i is the new width to set controls width to.
            Dim o As System.Windows.Forms.Control
            For Each o In _collection
                'o.SuspendLayout()
                o.Width = i
                'o.ResumeLayout()
            Next
'this loop only applies to children within Menu control, not controls within controls.
            For Each o In Me.Controls
                'o.SuspendLayout()
                o.Width = i
                'o.ResumeLayout()
            Next
            Me.Width = i
            Me.Parent.Width = i
            ControlArea.Width = i


If I uncomment o.SuspendLayout() and o.ResumeLayout() my o.Width = i seems pretty much ignored.

Any ideas?


AnswerRe: Resizing a control Pin
Henry Minute4-Sep-09 10:08
Henry Minute4-Sep-09 10:08 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 10:43
sitebuilderLuc Pattyn4-Sep-09 10:43 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 10:52
Henry Minute4-Sep-09 10:52 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 11:14
sitebuilderLuc Pattyn4-Sep-09 11:14 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 11:25
Henry Minute4-Sep-09 11:25 
GeneralRe: Resizing a control Pin
Luc Pattyn4-Sep-09 12:19
sitebuilderLuc Pattyn4-Sep-09 12:19 
GeneralRe: Resizing a control Pin
Henry Minute4-Sep-09 12:38
Henry Minute4-Sep-09 12:38 
GeneralRe: Awaiting the language police Pin
Luc Pattyn4-Sep-09 12:52
sitebuilderLuc Pattyn4-Sep-09 12:52 
GeneralRe: Awaiting the language police Pin
Henry Minute4-Sep-09 13:22
Henry Minute4-Sep-09 13:22 
AnswerRe: Resizing a control Pin
DaveAuld4-Sep-09 10:17
professionalDaveAuld4-Sep-09 10:17 
AnswerRe: Resizing a control Pin
Luc Pattyn4-Sep-09 10:45
sitebuilderLuc Pattyn4-Sep-09 10:45 
QuestionUpdate db in ADO.NET Pin
TheMrProgrammer4-Sep-09 7:19
TheMrProgrammer4-Sep-09 7:19 
AnswerRe: Update db in ADO.NET Pin
Henry Minute4-Sep-09 8:37
Henry Minute4-Sep-09 8:37 
AnswerRe: Update db in ADO.NET Pin
Kschuler4-Sep-09 9:34
Kschuler4-Sep-09 9:34 
GeneralRe: Update db in ADO.NET Pin
TheMrProgrammer4-Sep-09 20:51
TheMrProgrammer4-Sep-09 20:51 
GeneralRe: Update db in ADO.NET Pin
Kschuler8-Sep-09 2:43
Kschuler8-Sep-09 2:43 
AnswerRe: Update db in ADO.NET Pin
Steven J Jowett4-Sep-09 12:12
Steven J Jowett4-Sep-09 12:12 

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.