-
When I changed my Video Display from 640X480, forms were much smaller (how dumb of me to forget about this!). I would like to resize forms, controls, fonts, et cetera to accommodate changes in Form size and/or changes in Video Display Mode.
I assume that the Resize Event will trigger the code I expect to write, but my overall knowledge in this area is minimal. I have MSDN Library, so mere mention of a pertinent search word would be enough to help me.
I allowed Twips as units (VB Default). Is there another option which might be better for Resizing-logic?
My application does some simple Point-Plotting in a Picture Box, using ScaleMode 7 (centimeters). This happens to be handy for the mathmatics involved in the plotting, but I wonder if some other mode might be better for the Resizing Code.
How do I interrogate for Video Display Mode?
Any other hints you might be able to give me?
Thanx: Live long & prosper!
-
Actually, the Resize event is not fired by a change in the screen resolution. There is also a control called ReSize.ocx that is supposed to help with things like this. Check out the VB-World Review for ReSize.ocx at
http://www.vb-world.net/controls/resizeocx/
If you don't want to go that route... I think your stuck doing code for determining video mode and then coding form resize and control placement manually.
Hopefully someone else has a better suggestion.