![]() HideWindowBorders(superTux.MainWindowHandle) RemoveMenuBar(superTux.MainWindowHandle) While (superTux.MainWindowHandle = IntPtr.Zero) = Files\SuperTux\bin\supertux2.exe" // 0.6.3 Private void playSuperTuxBtn_Click(object sender, EventArgs e) Button click in the operator form starts the external application SetWindowLong(hWnd, GWL_STYLE, (uint)(style & ~(WS_CAPTION | WS_SIZEBOX))) //removes caption and the sizebox from current style Var style = GetWindowLong(hWnd, GWL_STYLE) //gets current style Public static void HideWindowBorders(IntPtr hWnd) Static extern bool RemoveMenu(IntPtr hMenu, uint uPosition, uint uFlags) ![]() Static extern bool MoveWindow(IntPtr Handle, int x, int y, int w, int h, bool repaint) Private static extern IntPtr SetParent(IntPtr hWndChild, IntPtr hWndNewParent) Public const uint WS_SIZEBOX = 0x00040000 Public static int WS_CAPTION = WS_BORDER | WS_DLGFRAME //window with a title bar Public static int WS_DLGFRAME = 0x00400000 //window with double border but no title Public static int WS_BORDER = 0x00800000 //window with border Much of the code below has been sourced from SO and Google more widely, however I have been unable to find references to 'splash' screen issues. I understand that causes/solutions may range depending on the application in question, so guidance is welcomed in lieu of a solution. What I want to achieve is for the 'splash' screen not to appear before moving the external application to the user control. However, the applications all start outside of the form (as indicated by the appearance of a 'splash' screen) before being moved inside the user form using SetParent(.). Using the code below I am able to run external applications inside the user form. One of the user controls becomes the parent of the external application. The user form contains a panel (as a header) and several custom user controls. ![]() One requirement of the application is to run external applications (games) in the user form. Each form is displayed on separate monitors, with both visible/available when the application is run. Originally made for SuperTux, CC BY-SA 4.I have a winforms application (.net 5.0) that comprises two forms - one for the operator (to setup different options/enter data, admin duties) and another for the user to interact with (play games, follow instructions etc). Thank you, Looki2000, for making the hader! We originally wanted to make a Fortnite clone, but by December 18th it was clear we wouldn't be able to finish it on time, so I made this tiny game instead, hope you like it. ![]() This game was made for the 2021 Minetest game jam in less than three days. And then, finally, when you have 99 coconuts, you can buy a drill. Get 20 coconuts and you can buy yourself a 2nd tier pickaxe. Once you get 8 coconuts, you can upgrade to a steel pickaxe which is even faster than a stone one. You start out with a hatchet, you use it to break coconuts, once you have four, you can find a payphone (they're scattered around the map) and buy a stone pickaxe by left clicking on it with your coconuts, a stone pickaxe mines 2 seconds faster than a hatchet. A game heavily inspired by "Coconut Hut" for the Ouya, it's a competetive 2-player game (also works in SP) where you collect coconuts and sell them in order to get better equipment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |