We have an app that needs a lot of screen realestate. All our company computers use basically the same hardware setup but some folks keep their displays at 1024 by 768.
When our app starts up it needs to set the screen resoultion of the user's dispay to 1280 by 1024, and then reset it to the user's preference when the app exits.
How do I get and set display size?
Thanks,
James
Comments
Try These Link
http://www.codeproject.com/csharp/CSDynamicScrRes.asp
http://www.codeproject.com/gdi/screenresolution.asp
http://www.developerfusion.co.uk/forums/topic-23024
http://www.freevbcode.com/ShowCode.asp?ID=4187
http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20950860.html
VB.Net Code will on the way in two or three days.
Shahzad Munir.
: Try These Link
: http://www.codeproject.com/csharp/CSDynamicScrRes.asp
: http://www.codeproject.com/gdi/screenresolution.asp
: http://www.developerfusion.co.uk/forums/topic-23024
: http://www.freevbcode.com/ShowCode.asp?ID=4187
: http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20950860.html
:
: VB.Net Code will on the way in two or three days.
:
: Shahzad Munir.
:
I don't think you should do it. Too many users just don't like that kind of screen resolution. Their wishes and eyes should come before your program. Redesign your application. Like to rule for web pages - don't design web pages over 800 pixels wide. Personnally, I apply the same rule to Windows applications. We are slowly moving to a standard of 1024 wide pixels, but it should always be a user's preference and your application should fit their wants, not yours or your applications.
:
:
: : Try These Link
: : http://www.codeproject.com/csharp/CSDynamicScrRes.asp
: : http://www.codeproject.com/gdi/screenresolution.asp
: : http://www.developerfusion.co.uk/forums/topic-23024
: : http://www.freevbcode.com/ShowCode.asp?ID=4187
: : http://www.experts-exchange.com/Programming/Programming_Languages/PowerBuilder/Q_20950860.html
: :
: : VB.Net Code will on the way in two or three days.
: :
: : Shahzad Munir.
: :
: I don't think you should do it. Too many users just don't like that kind of screen resolution. Their wishes and eyes should come before your program. Redesign your application. Like to rule for web pages - don't design web pages over 800 pixels wide. Personnally, I apply the same rule to Windows applications. We are slowly moving to a standard of 1024 wide pixels, but it should always be a user's preference and your application should fit their wants, not yours or your applications.
: :
: :
:
:
Actually, I agree. Unfortunatly, it's not my choice.
James
'when the function retrieves 1 value it sets the screen resolution
'when the function retrieves 0 value it sets the previous (users) resolution
'when the function retrives 2 value it checks the current resolution
'
Public Function CheckChangeResolution(ByRef GetState As Byte) As Boolean
Dim SetWsize As Int32 = 1024
Dim SetHsize As Int32 = 768
Dim SetRel As New Nicole.SCR.CResolution
'Here we should check system color depth to make sure it addresses to program's requirements /*/
Select Case GetState
Case 1
If (Wsize < SetWsize And Hsize < SetHsize Or Wsize > SetWsize And Hsize > SetHsize) Then
CheckChangeResolution = SetRel.CResolution(SetWsize, SetHsize)
End If
Case 0
CheckChangeResolution = SetRel.CResolution(Wsize, Hsize)
Case 2
If Wsize < 800 And Hsize < 600 Then
CheckChangeResolution = False
End If
End Select
End Function