Solved

Form Larger than Screen Size

Posted on 2001-07-13
6
894 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
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now