Add the form to Panel

xiaoxiao2021-03-06  47

In the first two days, I need to put the form in the panel in front of the program. I finally found the answer after experiencing all kinds of torture. Just set the topLalvel to false. The code is as follows: DIM newform as new myformnewform.toplevel = false.pnlmain.controls.add (NewForm)

************************************ In that system, in order to make numerous data display Therefore, the resolution is required at 1024 * 768 and above, and the same machine cannot run 2 systems. Dim X As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width Dim Y As Short = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height If X <1024 And Y <768 Then MsgBox ( "Please The system resolution is set to 1024 × 768, and then run this system again. "," Tips ") Application.exit () endiff

IF (Diagnostics.Process.GetProcesseSbyName (Diagnostics.ProcessName)> 0) dam () msgbox ("Sorry! System is already running, please do not run!",, "Tips") Application. EXIT () 'system.environment.exit (0) end if

转载请注明原文地址:https://www.9cbs.com/read-80834.html

New Post(0)