Introduction
This was the conversion from my previous posted topic Having full screen without accessing the SHFullScreen API. Basically, it remain accessing the same set of native API by means of p/invoke (Platform Invoke).
FindWindow
MoveWindow
GetWindowRect
SystemParametersInfo
Using the code
In this conversion, I moved the InitFullScreen
and DoFullScreen
function into a new class FSEngine
. Therefore, all you need to do are the below three steps, then you will be ready to ROCK! :p
First, refer the FSEngine
in your project.
Private fse As FSEngine
Second, instantiate and initialize the FSEngine
class.
fse = New FSEngine
fse.InitFullScreen()
Third, switch between full screen and normal mode.
If fse.DoFullScreen(True) = 0 Then
End If
If fse.DoFullScreen(False) = 0 Then
End If
Please refer to previous topic on Full screen for more information.