how can i remove the menubar from an embedded application?
heres what i have so far, which removes the titlebar:
vb Code:
Dim proc As New Diagnostics.Process proc.StartInfo.FileName = "calc.exe" proc.Start() proc.WaitForInputIdle() SetParent(proc.MainWindowHandle, Me.Panel2.Handle) SendMessage(proc.MainWindowHandle, WM_SYSCOMMAND, SC_MAXIMIZE, 0) InitialStyle = GetWindowLong(proc.MainWindowHandle, GWL_STYLE) SetWindowLong(proc.MainWindowHandle, GWL_STYLE, InitialStyle And Not WS_BORDER)


Reply With Quote