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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing resolution in VB

Status
Not open for further replies.

nc9

Programmer
Jul 24, 2007
3
CA
Hey,

I am writing a program in VB that generates some graphs and I set it up so that all the graphs generate side by side. But the formatting gets messed up when the screen resolution is changed.

How can I write my program so that the display is independent of the screen resolution?

Thanks.
 
Thanks for the help Christiaan, it got me part of the way there.

My graphs now display in the proper positions, but the sizing is still off. Is there any way to determine the sizing using absolute values instead of relative ones?
 
This will pop up a message box showing the resolution of the primary display:
Code:
    MsgBox(My.Computer.Screen.PrimaryScreen.GetBounds(New Drawing.Point(1, 1)).Width & "x" & _
           My.Computer.Screen.PrimaryScreen.GetBounds(New Drawing.Point(1, 1)).Height)

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top