This is only client!
Since 785 (EO’s Width) is not divisible by any even number you must change the size of frmMain (800x600 is a good size) This will not be covered in this tutorial
Derived from Here, changed for easy implementation.
NOTE: You may want to add an exit button to frmMain that calls Unload Me That is up to you to create
Add the file below to your project.
frmMain, under Private PresentY As Long add.
Public OldX As Long Public OldY As Long
This next steps depends on what engine you use, you need to fine the part where your engine starts and exits
For EO 3 (Maybe others only tryed it with EO 3 so far, and with just an empty project)
modGeneral, GameInit, under frmMain.Show add. Replace Width and Height with your current frmMain’s res EO uses 785x**594 **THIS IS NOT DIVISIBLE
by 12 you MUST change frmMain’s size to be divisible by 12
(Current bit per pix)
frmMain.OldX = Screen.Width / Screen.TwipsPerPixelX frmMain.OldY = Screen.Height / Screen.TwipsPerPixelY ChangeResolution ReplaceWithWidth, ReplaceWithHeight frmMain.WindowState = vbMaximized ' It fixes positioning on some monitors
modGeneral, logoutGame, under Dim buffer As clsBuffer, i As Long (For neatness, it can (Maybe) be placed anywhere) add.
ChangeResolution frmMain.OldX, frmMain.OldY
Last, open frmMain’s visual editor change frmMain’s BorderStyle to none