Change Windowed/Fullscreen Mode Dynamically

Depending on your application, something like this may do what you're looking for. It removes/adds the window frame and title bar at runtime, giving you the effect of fullscreen and windowed modes.