Solved

Form Larger than Screen Size

Posted on 2001-07-13
6
945 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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

751 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