Click here to Skip to main content
15,914,416 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Algorithm for matching database records? Pin
Wombaticus16-Oct-13 0:16
Wombaticus16-Oct-13 0:16 
QuestionProgram in a window Pin
Member 1027924614-Oct-13 21:57
professionalMember 1027924614-Oct-13 21:57 
AnswerRe: Program in a window Pin
Eddy Vluggen15-Oct-13 0:29
professionalEddy Vluggen15-Oct-13 0:29 
RantRe: Program in a window PinPopular
Richard Deeming15-Oct-13 0:38
mveRichard Deeming15-Oct-13 0:38 
AnswerRe: Program in a window Pin
Ammar_Ahmad16-Oct-13 0:09
Ammar_Ahmad16-Oct-13 0:09 
AnswerRe: Program in a window Pin
Abhinav S16-Oct-13 1:14
Abhinav S16-Oct-13 1:14 
GeneralRe: Program in a window Pin
Dave Kreskowiak16-Oct-13 1:33
mveDave Kreskowiak16-Oct-13 1:33 
QuestionHow to run a program under a window Pin
Member 1027924613-Oct-13 18:24
professionalMember 1027924613-Oct-13 18:24 
I 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
AnswerRe: How to run a program under a window Pin
Richard MacCutchan13-Oct-13 20:48
mveRichard MacCutchan13-Oct-13 20:48 
AnswerRe: How to run a program under a window Pin
Abhinav S13-Oct-13 20:57
Abhinav S13-Oct-13 20:57 
Questionerror comes connection properties not initiliaze Pin
Member 1019283511-Oct-13 22:48
Member 1019283511-Oct-13 22:48 
AnswerRe: error comes connection properties not initiliaze Pin
Eddy Vluggen12-Oct-13 2:39
professionalEddy Vluggen12-Oct-13 2:39 
QuestionInstallShield won't install Pin
Member 1026522811-Oct-13 5:57
Member 1026522811-Oct-13 5:57 
AnswerRe: InstallShield won't install Pin
Eddy Vluggen11-Oct-13 21:56
professionalEddy Vluggen11-Oct-13 21:56 
GeneralRe: InstallShield won't install Pin
Member 1026522812-Oct-13 3:38
Member 1026522812-Oct-13 3:38 
GeneralRe: InstallShield won't install Pin
Mycroft Holmes12-Oct-13 3:55
professionalMycroft Holmes12-Oct-13 3:55 
GeneralRe: InstallShield won't install Pin
Eddy Vluggen15-Oct-13 5:08
professionalEddy Vluggen15-Oct-13 5:08 
GeneralRe: InstallShield won't install Pin
Dave Kreskowiak15-Oct-13 8:42
mveDave Kreskowiak15-Oct-13 8:42 
Questioncommunicating between two exes Pin
MLSrinivas11-Oct-13 3:44
MLSrinivas11-Oct-13 3:44 
AnswerRe: communicating between two exes Pin
Mycroft Holmes11-Oct-13 13:44
professionalMycroft Holmes11-Oct-13 13:44 
GeneralRe: communicating between two exes Pin
GuyThiebaut15-Oct-13 5:44
professionalGuyThiebaut15-Oct-13 5:44 
Question"400" error from Excel VBA Pin
jasmith410-Oct-13 3:58
jasmith410-Oct-13 3:58 
AnswerRe: "400" error from Excel VBA Pin
thatraja10-Oct-13 4:39
professionalthatraja10-Oct-13 4:39 
QuestionHow to represent a netmask? Pin
Bogus Exception4-Oct-13 15:38
Bogus Exception4-Oct-13 15:38 
AnswerRe: How to represent a netmask? Pin
Ron Beyer4-Oct-13 16:31
professionalRon Beyer4-Oct-13 16:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.