Resolution Check

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
I am using the following code to check for resolution

VB.NET:
Dim intX As Integer = Screen.PrimaryScreen.Bounds.Width
Dim intY As Integer = Screen.PrimaryScreen.Bounds.Height
Me.Height = intY
Me.Width = intX
Me.Top = 0
Me.Left = 0
[SIZE=2]If (intX <> 1024 And intY <> 768) Then[/SIZE]

Is there any reason why it would say your resolution is not 1024 x 768 when Display Properties says it is?
 
Last edited by a moderator:
It doesn't say anything, it just loads as normal.

VB.NET:
If (intX <> 1024 And intY <> 768) Then
Dim Resolution AsNew Resolution
Resolution.Label1.Text = "Export needs 1024 by 768 resolution to run properly." & vbNewLine & "Would you like to change now?"
Resolution.TopMost = True
Resolution.Show()
Else
' Load as normal
 
Last edited by a moderator:
what if the user has a screen resolution larger than 1024x768, you shouldnt force the user to make their resolution smaller just for your app:
VB.NET:
If intX < 1024 AndAlso intY < 768 Then

End If
 
Back
Top