i am using togglefullscreen() function to ofc toggle between window mode & full screen for my application(game).
When i run the game in window mode, the title bar has the Windows Aero Effect of Win7 as it should be, but when i go full-screen and come back to window mode, then there is no more Aero Effect in window title bar, just a normal title bar

Similarly if i start the Game in full screen mode and then toghle to window mode, there is no more aero effect. Why is that happening & how to get back aero effect
Windows disables Aero because while you’re inside a fullscreen app, the user usually doesn’t see the title bar or task bar so it’s just a waste of time to compute the ‘good’ graphics (transparency for example). If Aero doesn’t restart after you close your program, then you can make a .bat file like so:
This will stop the service controlling aero, and then restart it (which always brings back the scheme if it should be there. (Obviously this is not in c#, but if you can do the same thing using the
Processclass, or by startingcmd.exewith some arguments. ("/C"will allow you to call commands fromcmd.exe).