Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing the MSFlexGrid control

Status
Not open for further replies.

JohnBates

MIS
Feb 27, 2000
1,995
US
I am working with a form that someone else created,
using the VB 5 MSFlexGrid...

Problem: On a 17 inch monitor, the entire form is visible.... but on 19 inch or 21 inch monitors, the buttons
at the bottom of the form do not show.

Question: What changes can I make so that the entire form will display on larger monitors ??

Thanks for any ideas ! John [sig][/sig]
 
Hi

Usually, it's not a larger monitor that clips your forms/controls but variances in screen resolution.

The first thing you should do is maybe check if there are different resolutions.

The second thing you should do is use the Form Layout window
to see how your form will look on different resolutions.

What I normally do is check the current user's resolution
at the start up of my apps as a precaution.

Unfortunately this is not the type of question I can provide a definite answer to as I am not experiencing the problem.

Hope this helps
caf
[sig][/sig]
 
John,

At run-time set the width and height of the grid to a percentage of its forms width and height. If you put the sizing code into the resize event of the form it will do the trick even if you drag the forms corners around. [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Thanks to caf and Mike for your replies. Caf, when I changed the resolution to 1024 X 768, then everything on the
form was visible. I appreciate your suggestion.

In your reply, you mentioned that you check the user's
resolution at run time, then make any necessary adjustments.

I have a followup question......

How do you determine the resolution since there is no
Resolution property for the screen object ?


Thanks again. John
[sig][/sig]
 
There is a way to find the resolution for the screen object
Screen.Width/Screen.TwipsPerPixelX
Screen.Height/Screen.TwipsPerPixelY

Collin [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top