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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Forms within an MDIForm

Status
Not open for further replies.

OneTJN

Programmer
Dec 25, 2007
11
US
I have a program with several mdichild forms. One of these forms I vary the form height, however I always want that form to be at Top=0 (not necessarily in the visible area of the MDIForm). When the forms height is bigger then the MDIform scaleheight then a vertical scroll bar appears within the MDIForm. Thats OK. However, if the user scrolls down so that the bottom of the MDIForm is showing and I resize the form whose height was modified then the top of that form is visible within the MDIForms view. I want the top of the form to be off the visible screen, I.E. at the very top of the MDIForm's scaleheight.

Top=0 doesn't work...sets it to top of viewable area of MDIForm. How do I access the ScrollBar within the MDIForm. I tried using API calls and that didn't work.
 
How about Frm.Visible = False when you don't want it seen?

"If I were to wake up with my head sewn to the carpet, I wouldn't be more surprised than I am right now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top