Click here to Skip to main content
15,887,393 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want To change screen resolution If application install In client side
resolution display change according to my application

What I have tried:

StandardHeight = CUInt(Screen.PrimaryScreen.Bounds.Height)
 StandardWidth = CUInt(Screen.PrimaryScreen.Bounds.Width)


I want this

768 = CUInt(Screen.PrimaryScreen.Bounds.Height)
        1366 = CUInt(Screen.PrimaryScreen.Bounds.Width)
Posted
Updated 21-Jan-19 13:08pm
Comments
OriginalGriff 21-Jan-19 7:58am    
That makes no sense at all: please try editing your question, and this time remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.
Richard MacCutchan 21-Jan-19 12:04pm    
You should not do this, you may end up making the screen unreadable for the client. The correct thing to do is to make sure that your application can adjust itself to whatever screen settings the client is using.

This is not something that is recommended, but if you really must then here is an example of how to do it: Changing the screen resolution[^]
Usage:
Debug.Assert(SetResolution(1024, 768, 32))

And here is a more elaborate example: Using Visual Basic to Change Screen and Desktop Settings[^]
 
Share this answer
 
v3
Comments
Computechsoft 21-Jan-19 9:21am    
Its very simple Question System resolution change if application install on client side system how to change set this resolution (1366x768) (this is my Question)
Quote:
I want To change screen resolution If application install In client side resolution display change according to my application

That is a bad idea, what ever your good reason to do this, client have at least a reason as good as yours to have their own resolution setting.
Among reasons:
- Screen with smaller resolution
- Different aspect ratio
- Multiple screens
- 4k screen
- bad eyesight
 
Share this answer
 
v2
Be warned. Changing the system screen resolution just for you app will most like get your app uninstalled, permanently.

What if I've got a super-wide monitor that supports, say, 5120x2106? Change my screen resolution down to 1366x768 and I'll uninstall your app and demand a refund.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900