If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > To Resize the form and controls

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-10-04, 13:06
vamsy vamsy is offline
Registered User
 
Join Date: Apr 2004
Posts: 18
Question To Resize the form and controls

Hi,
My application is working fine with my system but when i installed on another system which is having the small monitor, i can't see the control buttons on the form. How to resize the form to the screen size in VB6.0 If you provide the code i will be happy to look at it,Appreciate your help
Thanks
Reply With Quote
  #2 (permalink)  
Old 08-11-04, 08:56
Marvels Marvels is offline
Registered User
 
Join Date: Jul 2003
Location: Amsterdam, Nederland
Posts: 449
Cool resize your forms to screen size

me.Width=(screen.Width -50)

or
with me
.Width = Screen.Width * .75 ' Set width of form.
.Height = Screen.Height * .75 ' Set height of form.
.Left = (Screen.Width - .Width) / 2 ' Center form horizontally.
.Top = (Screen.Height - .Height) / 2 ' Center form vertically.
end with



PS look if your screen display propertys arn't set to the max

TIP : "allways" check your application/frm-screens on a resulution of
800 X 600 (old laptops) i know it's about time they upgrade it -^.^-
1024 X 786 (deafalt pc resolution)

Have fun
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On