Click here to Skip to main content
15,886,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am changing the Desktop resolution to (1024,768) dynamically through vb.net code whenever my application login page get opened.Now i need to change the resolution to original resolution whenever ALT+tab keys are pressed from my application login screen.So i need to capture the ALT+tab in keydown event of my login form.I wrote the code but keydown event is not capturing Tab key.So please help me with this.
Posted
Updated 21-Jul-11 0:16am
v2
Comments
Herman<T>.Instance 21-Jul-11 6:46am    
please show your current code

You shouldn't need to do this AT ALL.

Changing the screen resolution is a HUGELY bad idea because you affect all other applications running on the machine and you also completely change the layout of the users desktop icons when you do that.

Try doing this in a multiple monitor setup too and the problem gets even worse. How are you going to know which monitor your app is on and track which one you're going change??
 
Share this answer
 
v2
Comments
Wayne Gaylard 21-Jul-11 9:55am    
EXTREMELY HUGELY bad idea. +5
I think whenever your form get deactivated then you want to reset the reoslution. If it is, than you can use Deactivate event of form.....
 
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