Click here to Skip to main content
16,022,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am writing a Visual Basic 2010 application that I need to stay maximised.

I know you can disable the aero snap through the ease of access centre and there is also a way to disable it by editing a registry key.

I need this done through code though, and just for the time that my application is running, it can be enabled again afterwards.

The problem with editing the registry key is that you have to log off and on or reboot the computer.

If there is no other way, is it posible then to edit the registry keys and somehow make it active without log off/on or restart?

I've been searching the web for 3 days now, any help would be appreciated!
Posted

1 solution

You cannot do that without disabling it system-wide for the life of your application session. That means what your code does will affect everything else running on the system at the time your code is running. This is considered extremely bad practice.

The only way I know of to do it on an application basis is by modifying a shortcut to your .EXE, on the Compatibility tab, check "Disable desktop composition".
 
Share this answer
 
v2

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