Sir Please tell me how to run an external exe in a frame in vb.net... it is possible...
Member 10279246
Posts
-
Program in a window -
How to run a program under a windowI want to run ms word application in my program... I have call the exe but I want to run under a frame means I do not want to show the border.. or any method to remove the frame or border of external exe here is sample code which I got but not working ----------------------------------------- Public Class Form1 Inherits System.Windows.Forms.Form Declare Function ShowWindow Lib "user32" (ByVal hWnd As System.IntPtr, ByVal nCmdShow As Integer) As Boolean Private Const SW_MINIMIZE As Integer = 6 Private Const SW_MAXIMIZE As Integer = 3 Private Const SW_RESTORE As Integer = 9 Declare Function SetParent Lib "user32" (ByVal hWndChild As System.IntPtr, ByVal hWndNewParent As System.IntPtr) As System.IntPtr #Region " Windows Form Designer generated code " Private Sub wordMenu_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles wordMenu.Click Dim pinfo As New ProcessStartInfo("WINWORD") Dim p As Process = System.Diagnostics.Process.Start(pinfo) p.WaitForInputIdle() SetParent(p.MainWindowHandle, Label1.Handle) End Sub End Class 'Here this fellow explain how to run winword under a label.. But it is not working.... or any method to remove frame of called exe