Click here to Skip to main content
15,926,596 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Encryption and decryption........... Pin
Member 387988129-Mar-07 17:50
Member 387988129-Mar-07 17:50 
GeneralRe: Encryption and decryption........... Pin
JUNEYT29-Mar-07 21:08
JUNEYT29-Mar-07 21:08 
AnswerRe: Encryption and decryption........... Pin
Vasudevan Deepak Kumar29-Mar-07 6:16
Vasudevan Deepak Kumar29-Mar-07 6:16 
GeneralRe: Encryption and decryption........... Pin
Member 387988129-Mar-07 19:19
Member 387988129-Mar-07 19:19 
QuestionWord document Pin
scorp_scorp28-Mar-07 19:41
scorp_scorp28-Mar-07 19:41 
AnswerRe: Word document Pin
A*****28-Mar-07 19:53
A*****28-Mar-07 19:53 
GeneralRe: Word document Pin
scorp_scorp28-Mar-07 20:21
scorp_scorp28-Mar-07 20:21 
GeneralRe: Word document Pin
A*****28-Mar-07 21:11
A*****28-Mar-07 21:11 
scorp_scorp wrote: One inquiry, do i have to close the process? or end it ? or shut it down? oe may be it ends by closing the MsWord automatically?

No only when you want it to close. It is launched the same way as when you double click on it in windows.

To close it just hit the close button in the top righthand corner in msword and the .doc would close or click file then exit.

Or if you want to close it programmatically you could use the process.closemainwindow or process.kill.
You can do this by going to toolbox then clicking components and then double click on process to add a process component to the form.

Then this is the code you should have in your first button:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
    Process1.StartInfo.FileName = "C:\Example.doc"<br />
    Process1.Start() '//starts example.doc<br />
End Sub


And this is the code for your second button(create another button) to close example.doc:

  Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
        Process1.StartInfo.FileName = "C:\example.doc"<br />
        Process1.CloseMainWindow() '//Sends the example.doc a close message asking it to terminate<br />
        '//Or alternatively you can use process1.kill_<br />
        '// And this will force example.doc to close <br />
<br />
    End Sub 


Hope this helps
GeneralRe: Word document Pin
scorp_scorp28-Mar-07 21:17
scorp_scorp28-Mar-07 21:17 
Questionusing DataGridViewSelectedRowCollection in VB.net Pin
Alok9128-Mar-07 19:31
Alok9128-Mar-07 19:31 
QuestionVB and webservices. Pin
NasimKaziS28-Mar-07 19:09
NasimKaziS28-Mar-07 19:09 
QuestionVB2005EE Help Pin
Stigmurder28-Mar-07 18:16
Stigmurder28-Mar-07 18:16 
QuestionTiff File Pin
G.Manivannan28-Mar-07 18:14
G.Manivannan28-Mar-07 18:14 
AnswerRe: Tiff File Pin
Vasudevan Deepak Kumar29-Mar-07 6:17
Vasudevan Deepak Kumar29-Mar-07 6:17 
GeneralRe: Tiff File Pin
G.Manivannan6-Apr-07 21:36
G.Manivannan6-Apr-07 21:36 
QuestionCalling A C++ Dll Frim VB.NET Pin
mlauahi28-Mar-07 13:49
mlauahi28-Mar-07 13:49 
AnswerRe: Calling A C++ Dll Frim VB.NET Pin
Dave Kreskowiak28-Mar-07 15:15
mveDave Kreskowiak28-Mar-07 15:15 
GeneralRe: Calling A C++ Dll Frim VB.NET Pin
mlauahi29-Mar-07 8:34
mlauahi29-Mar-07 8:34 
GeneralRe: Calling A C++ Dll Frim VB.NET Pin
Dave Kreskowiak29-Mar-07 12:34
mveDave Kreskowiak29-Mar-07 12:34 
Questionhow to put my project on lan Pin
abbss.gaurav28-Mar-07 7:34
abbss.gaurav28-Mar-07 7:34 
AnswerRe: how to put my project on lan Pin
Marcus J. Smith28-Mar-07 8:12
professionalMarcus J. Smith28-Mar-07 8:12 
AnswerRe: how to put my project on lan Pin
Christian Graus28-Mar-07 13:37
protectorChristian Graus28-Mar-07 13:37 
AnswerRe: how to put my project on lan Pin
Vasudevan Deepak Kumar29-Mar-07 6:18
Vasudevan Deepak Kumar29-Mar-07 6:18 
QuestionGetting Serial Port Details in VB.NET Pin
shejijoseph28-Mar-07 6:31
shejijoseph28-Mar-07 6:31 
AnswerRe: Getting Serial Port Details in VB.NET Pin
Dave Kreskowiak28-Mar-07 8:53
mveDave Kreskowiak28-Mar-07 8:53 

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.