Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Screenresolution


Screenresolution

Author
Message
Kiter
Kiter
Forum God
Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)

Group: Forum Members
Posts: 132, Visits: 231
I design a program on a PC with screen resolution 1280*1024.

But now I noticed that when I go back to 1024*768 my form size is also down to 1024*768 and I can not access all of my controls.

How can I fix it so I can access all my controls again? I don't mind if my form is larger than my screen

Kiter

Keithuk
Keithuk
Forum God
Forum God (298K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Yes it is a problem resizing all controls to fit different screen resolutions. You can search on here for resize controls and you will come across Resize_Controls.zip. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Perrie
Perrie
Forum God
Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)

Group: Forum Members
Posts: 13, Visits: 308
Could also create an MDI project and place the form with the controls in it as an MDI child, this will give you the ability to maintain a constant size for the form and its controls and the MDI parent will allow scrolling if it goes beyond the bondaries of the screen resoloution.
Kiter
Kiter
Forum God
Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)

Group: Forum Members
Posts: 132, Visits: 231
Hi Perrie,

I never worked with MDI, so do you have an example for me?

Keithuk,
Thanks, I will have a look at it

Keithuk
Keithuk
Forum God
Forum God (298K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Its not as easy with an MDI as I've read on other forums Google it. Wink

http://www.vbforums.com/search.php?searchid=2913466

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Kiter
Kiter
Forum God
Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)

Group: Forum Members
Posts: 132, Visits: 231
Hi Keithuk,

I tried you link, but no luck:"Sorry - no matches. Please try some different terms. "

You resize program is working wil, but I use "sub main" and I receive the error that ".left cannot be set at run time"

I tried some things, but no luck so far.Crazy

Keithuk
Keithuk
Forum God
Forum God (298K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
Kiter (2/27/2011)

You resize program is working wil, but I use "sub main" and I receive the error that ".left cannot be set at run time"

A Sub Main works a bit differently.

I occasionally get that error but I haven't found out why. The app works perfectly on its own without any errors but if you copy the Subs into another app the error shows up, strange. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Perrie
Perrie
Forum God
Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)

Group: Forum Members
Posts: 13, Visits: 308
Kiter (2/27/2011)
Hi Perrie,

I never worked with MDI, so do you have an example for me?

Keithuk,
Thanks, I will have a look at it

MDI is fairly straightforward to use. You create the startup form as an MDI form (Selectable from the form types) and then set the MDIchild property on the rest of the projects forms to true. The main form will then act as container for all the child forms. You can still add forms to the project that are not child and they will simply behave like regular forms outside of the MDI main.

The biggest issue is that the only interactive controls you can put on the MDI main is a toolbar and menus. You can still place imagelists, commondialog, timers etc on the Main form. But generally you simply use the main form and a launchpad for any subsequent forms that contain the interactive controls like buttons, checkboxes, lists etc.

Im at work at the moment and the only projects that I have are quite large so when I get home Ill quickly write up and example MDI project and upload it.

Kiter
Kiter
Forum God
Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)Forum God (20K reputation)

Group: Forum Members
Posts: 132, Visits: 231
Hi Perrie,

Thanks in advance!

Perrie
Perrie
Forum God
Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)Forum God (3.8K reputation)

Group: Forum Members
Posts: 13, Visits: 308
There a simple demonstration of an MDI project, hope it helps.
Attachments
MDI Demo.zip (592 views, 7.00 KB)
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search