Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21159

[RESOLVED] Form Dimensions!

$
0
0
Hey guys...

I have had a question about form dimensions!

I have 2 simple command buttons :

-Their code is : form1.width(something!) and form1.height(something!) *the dimensions are not the same!
-They set the width and height of form according to the text box size.


I set the start up position property of form to the "center screen".

when I click on the first command button , the form is at the center position of screen accurately . But when i click on the second command button which make the form bigger , it just adjusts the width and height of form and the form is not re-adjusted at the center position.

How can i set the form position to the Center of screen permanently ?

**Please consider that Screen dimensions are unknown!

Thanks

Viewing all articles
Browse latest Browse all 21159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>