Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I make a user form scrollable at runtime 2

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
I have done much more VBA than VB so please bear with me if the answer to this question is obvious. I have a user form that is data driven. At load time I am creating a control array, basically one line per data item.

For purposes of our discussion, lets say the form fills the screen at 10 lines. So, at 10 lines or less I am fine. When there are more than 10, I need to set the form up to scroll vertically. How do I do that?

Thanks for any help and/or suggestions!

Have a great day!

j2consulting@yahoo.com
 
Use MDI forms. Create a parent MDI form to hold your menus and toolbar (if used) and a child form to hold the data. The child form can have a vertical scroll bar if necessary and you can scroll it.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 
Can you use MDI forms inside a PropertyPage as I am using the form within Outlook as part of an Add-In?

Thanks!

Have a great day!

j2consulting@yahoo.com
 
That I am not sure about. Never tried using them that way.

Take Care,

zemp

"Show me someone with both feet on the ground and I will show you someone who can't put their pants on."
 
Zemp, the MDIForm is grayed out in the Projects menu for property pages, so I guess the answer is no.

Nicsin, thanks for the link, I have not been able to try it but I really appreciate the help.

Have a great day!

Have a great day!

j2consulting@yahoo.com
 
steve mcmahons vbaccelerator.com site has a class that can add 'real' win32 scrollbars to any object with an hwnd. Simple!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top