Need Help Adding Scrollable Region Space in a .NET DialogBox
Posted on 2011-10-22
I have a question regarding DialogBoxes in Windows Applications using VB in the .NET 3.5 Framework (Visual Studio 2008). My DialogBox is popped using a button from the main application window. The DialogBox contains alot of content, so I set the AutoScroll property of the DialogBox to True.
Most of the controls on the DialogBox are instantiated programatically (mainly UserControls and buttons). A small problem is that the final control (a button) appears at the very bottom of the DialogBox after scrolling manually, with no space underneath it. It would look alot better if I could add say 50 pixels of white space after the final button.
Is there a way to add the 50 pixels of white space after the final button, in the sense of increasing the scrollable height of the DialogBox, but without increasing the physical Height property of the DialogBox itself (i.e., I don't want to increase the "frame size" of the DialogBox, but just add about 50 pixels to the scrollable region under the final painted control)?
Thank you, Stu Engelman