Private Declare Function ShowWindow Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal nCmdShow As SHOW_WINDOW) As Boolean Dim p() As Process = Process.GetProcessesByName("mChat") If p.Length > 1 Then ShowWindow(p(0).MainWindowHandle, SHOW_WINDOW.SW_RESTORE) End If
if (!me.Visible) { me.Visible = true; me.Show(); me.WindowState = FormWindowState.Normal; }
me.Windowstate=Formwindowstate.Minimized me.hide
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)