making resolution-free forms
making resolution-free forms
making resolution-free forms
making resolution-free forms
making resolution-free forms
making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms
making resolution-free forms making resolution-free forms
making resolution-free forms
Go Back  Xtreme Visual Basic Talk > > > making resolution-free forms


Reply
 
Thread Tools Display Modes
  #1  
Old 03-21-2002, 03:45 AM
ionutdinulescu
Guest
 
Posts: n/a
Question making resolution-free forms


Hello !
I have about 60 forms, each of them with almost 10-20 controls
I have 1024x768 (17' monitor) but I designed the project on 640x480 according to what MSDN said.

The problem is that on 21' monitors, my forms are too small.
What can I do ? Writing code to every control in my app for sizing it ?


Thanks !
Reply With Quote
  #2  
Old 03-21-2002, 04:11 AM
gallicus gallicus is offline
Junior Contributor
 
Join Date: Dec 2001
Location: at work... probably :-(
Posts: 366
Default

There are two ways around this. Either determine the resolution of the machine you are running on and resize at run time or allow the forms to being resizeable (you will have to resize the ontrols too!). Do a search on 'resizing forms' and 'resizing controls' in this forum. There have been threads asking this sort of question before and there are plenty of answers too!
__________________
(A)bort, (R)etry, (G)et a beer?
Reply With Quote
  #3  
Old 03-21-2002, 06:17 AM
Ad1making resolution-free forms Ad1 is offline
Senior Contributor

Retired Moderator
* Expert *
 
Join Date: Feb 2001
Location: UK
Posts: 1,287
Default

you can loop through all the controls generically by accessing the Controls property ie
Code:
for x=0 to controls.count-1
    controls(x).width=  'etc etc
next x
do a search on the forum to find more detailed code examples
Reply With Quote
  #4  
Old 03-21-2002, 10:35 AM
loquin's Avatar
loquinmaking resolution-free forms loquin is offline
Google Hound

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Arizona, USA
Posts: 12,400
Default

Also, Agendum software (third party controls) makes a control specifically for this sort of thing - one of the options you have is to specify the percent of screen width/height for your form. All controls EXCEPT those you specify are resized. It also has several other nice features (opening/closing effects, gradients, etc.) & is fairly reasonable.

It seems to work well; the only issue I had with it is if you have a couple of programmers working on a project, unless you have bought the site development license, the individual programmers controls don't recognize each other.

i.e. programmer 1 drops the fastform control onto a form & sets it up. It runs OK & compiles OK on programmer 1's machine.

Programmer 2 opens & runs the source on their machine; the fastform control complains that the fastform control is not registered. (but it runs ok after that) In order to get rid of the complaint, programmer 2 need to delete the control, re-add the control, and select the options again, at which point, it works ok for programmer 2. If programmer 1 opens it & runs it though, same issue.

Cost of site ldevelopers icense is apx 2.5 times cost of individual license. No license req'd for distribution.
__________________
Lou
"I have my standards. They may be low, but I have them!" ~ Bette Middler
"It's a book about a Spanish guy called Manual. You should read it." ~ Dilbert
"To understand recursion, you must first understand recursion." ~ unknown
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
making resolution-free forms
making resolution-free forms
making resolution-free forms making resolution-free forms
making resolution-free forms
making resolution-free forms
making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms making resolution-free forms
making resolution-free forms
making resolution-free forms
 
making resolution-free forms
making resolution-free forms
 
-->