Solved

Form Larger than Screen Size

Posted on 2001-07-13
6
927 Views
Last Modified: 2012-05-04
I am working on a registry editor for some software. The project is huge with 30 different packags included. I need to have all of the information on the screen at once ( otherwise I would use multiple forms ). The info doesnt have to be 100% visible. I have determined that a form size of 13500 will get everything on the single form. I thought I would use a scroll bar to scroll down the form but the bottom of the form is cut off when I run the program. How can I extend the max length of the form to get everything on it and then use a scroll bar to have access to everything?
0
Comment
Question by:bandu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 1

Accepted Solution

by:
chaos_59 earned 100 total points
ID: 6281694
have you tried using MDI (multiple document interface)?
Try adding an mdiform to your project, then change the mdichild property of your existing form to True.

Set the Scrollbars property of the MDIForm to true.
Set the windowstate of the child form to normal or the scrollbars won't appear.

When the mdichild form is larger than the parent you should see scrollbars on the parent form to move the child form into different positions.

0
 
LVL 1

Expert Comment

by:chaos_59
ID: 6281722
Another solution would be to put everything on your current form into a frame control. Then add horizontal and vertical scrollbars to the edges of your form to position the frame control.
Basically, the form would be maximized, to cover the screen, and the form would be larger than the screen and moveable "under" the window.
0
 

Author Comment

by:bandu
ID: 6281729
Thanks Chaos 59,

 This does indeed solve the problem ,but now how can I make sure that it will work with all types of resolutions. I am programming in 1024x768 and the two sizs that will be used in production are 800x600 and 600x480. Can I resize this Mdiform to full screen and the child form resize as well or can I look the mdi size and position and set it close to 600x480
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 3

Expert Comment

by:gajendra
ID: 6282042
Dear bandu

The only way you can have a form larger than the screen using VB is by using it as an MDI child of a MDIForm.

HTH

Gajendra
0
 
LVL 6

Expert Comment

by:pierrecampe
ID: 6282498
Dear gajenda
a vb form can be larger then the screen if it has no border
it does not have to be a mdi child for that


0
 
LVL 1

Expert Comment

by:chaos_59
ID: 6286765
It should work with any resolution. As long as the mdichild is larger than the parent. If you set the Windowstate property of the parent form to Maximized it will always expand to the full screen size. The scrollbars will always appear whenever the child form is larger than the parent.
Also, either set the controlbox of the child form to false, to prevent the user from maximizing the child form, or hook into the resize event of the form to re-resize it to it's proper size if the user maximizes it. The scrollbars won't appear if the child form is maximized.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question