Connecting Tech Pros Worldwide Help | Site Map

How to zoom a form in vb6

Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#1: Aug 26 '09
hi
is there any way to zoom in a form, so that one can have enlarged view of the form.


regards
manpreet singh dhillon hoshiarpur
debasisdas's Avatar
Moderator
 
Join Date: Dec 2006
Location: Bangalore ,India
Posts: 7,497
#2: Aug 26 '09

re: How to zoom a form in vb6


Try to call the Magnifier inbuilt to windows XP.
Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#3: Aug 27 '09

re: How to zoom a form in vb6


but windows magnifier opens on the top of screen. but i want to zoom the form in its original position, so that end user could not even guess that any magnifier is being used.
Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#4: Sep 11 '09

re: How to zoom a form in vb6


is there any way out
smartchap's Avatar
Familiar Sight
 
Join Date: Dec 2007
Location: Lucknow, India
Posts: 194
#5: Sep 18 '09

re: How to zoom a form in vb6


Dear Mr. Dhillon
Search in www.bigresource.com for Zoom Form in VB6 and get a lot of help.
Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#6: Sep 26 '09

re: How to zoom a form in vb6


hi smartchap
thanks for the reply
i could find nothing on the link suggested by you. can you please tell a particular page that may be helpful.

thanx
smartchap's Avatar
Familiar Sight
 
Join Date: Dec 2007
Location: Lucknow, India
Posts: 194
#7: Sep 29 '09

re: How to zoom a form in vb6


Have a look at this :
http://www.vbforums.com/showthread.p...highlight=zoom
smartchap's Avatar
Familiar Sight
 
Join Date: Dec 2007
Location: Lucknow, India
Posts: 194
#8: Sep 29 '09

re: How to zoom a form in vb6


To get the required results you must use Left, Top, FontSize, ScaleHeight, ScaleWidth properties of all the controls in the form. Must save Form ScaleHeight, ScaleWidth and FontSize in a variable during loading the form so that they make a reference to new properties during resizing. For Zoom In & Out you may use two command buttons or some function keys or even MouseDown (say Left = Zoom In, Right = Zoom Out). For a picture in picture box always rescale its width & height properties to get zooming effect.
Hope it will help you. Otherwise I will post a code I have developed as soon as I locate it (in my old CDs).
Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#9: Sep 29 '09

re: How to zoom a form in vb6


hi smartchap
thanks for the reply.
my problam is not what you got.
actually my software was running on 15" monitor. but now the user has shifted to 17" LCD. as you know in older times 15" monitor usually worked on 800X600 resolution setting. and modren LCDs can work on 1200 X 780 .
on this setting all of the screens of software look smaller.
if i start increasing font size of all of the screens it will take at leaset two months.
now i have two ways out:
1. i will develop a zoomer to zoom in the form so that user could comfortably type and view information on the screen.
2. i will open that particular window in 800 X 600 resolution (irrespective of the original windows resolutions)
if you have any solution then please help
regards
manpreet singh dhillon hoshiarpur
smartchap's Avatar
Familiar Sight
 
Join Date: Dec 2007
Location: Lucknow, India
Posts: 194
#10: Sep 29 '09

re: How to zoom a form in vb6


Got your point. See the solution at this link:

http://www.vbforums.com/showthread.p...ppear+controls

I think now you got the exact solution. If not ask again. If yes, thank the writer.
Familiar Sight
 
Join Date: Oct 2007
Posts: 158
#11: Sep 30 '09

re: How to zoom a form in vb6


hi smartchap
i followed the link suggested by you.
it is fine
actually the code is not setting resultion of the screen covered by form, but is changing the form's and controls' width, height and font size as these will be visible in 800 X 600 resolution.
as the width of a control (eg command button) is set to according to the 800 X 600 setting it overlaps the other control beside it.

i want to change the resolution of only that area of screen where the target form will be shown.

regards
manpreet singh dhillon hoshiarpur
smartchap's Avatar
Familiar Sight
 
Join Date: Dec 2007
Location: Lucknow, India
Posts: 194
#12: Sep 30 '09

re: How to zoom a form in vb6


Please bear with me I will try to help u next week as this week I am a little bit busy.
Reply


Similar Visual Basic 4 / 5 / 6 bytes