Click here to Skip to main content
15,898,588 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Remove Similar Lines Pin
riced7-May-09 6:52
riced7-May-09 6:52 
GeneralMessage Closed Pin
10-May-09 21:43
vijay248210-May-09 21:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 2:28
riced11-May-09 2:28 
GeneralMessage Closed Pin
11-May-09 2:54
vijay248211-May-09 2:54 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 3:06
riced11-May-09 3:06 
GeneralMessage Closed Pin
11-May-09 3:43
vijay248211-May-09 3:43 
GeneralRe: Remove Similar Lines Pin
riced11-May-09 5:32
riced11-May-09 5:32 
Questioncreate process Pin
hrishiS7-May-09 1:15
hrishiS7-May-09 1:15 
Hi to All

I have a few doubts on creation of process to execute any exe/ppt/any file in VB.NET. Please clarify me

1) How to use waitforexit() methods. Its not working for me in some cases?
My code is..
dim p as new process
p.startInfo.filename=MyPath
p.start()
p.waitforexit()

Sometimes If I run a calc, (ie MyPath is either calc.exe or a path to a shortcut of calc)..It runs the calc and shows an error in p.waitforexit() saying something like "p has not assign any process"

2)Can we check for an process if it is alive? I want to check if explorer.exe is running?

3)Can we maximise and bring it to front of the all window, for a process which is running? (eg: I have a form which covers the desktop. I have a button(run calc) which runs calculator..Now after running if I click on the form,the calc goes back to my form...Now if I click the button(run calc),I dont want to open a new calc,...instead I want to bring the already running calc on top.)

Thnaks in advance

-----------------------------
I am a beginner

AnswerRe: create process Pin
Eddy Vluggen7-May-09 1:29
professionalEddy Vluggen7-May-09 1:29 
GeneralRe: create process Pin
hrishiS7-May-09 1:39
hrishiS7-May-09 1:39 
AnswerRe: create process Pin
Eddy Vluggen7-May-09 8:34
professionalEddy Vluggen7-May-09 8:34 
AnswerRe: create process Pin
Dave Kreskowiak7-May-09 5:09
mveDave Kreskowiak7-May-09 5:09 
GeneralRe: create process Pin
hrishiS7-May-09 22:25
hrishiS7-May-09 22:25 
GeneralRe: create process Pin
Dave Kreskowiak8-May-09 1:19
mveDave Kreskowiak8-May-09 1:19 
QuestionInet Contol in visual Basic Pin
Devkranth Kishore Vanja7-May-09 0:56
Devkranth Kishore Vanja7-May-09 0:56 
AnswerRe: Inet Contol in visual Basic Pin
Dave Kreskowiak7-May-09 4:59
mveDave Kreskowiak7-May-09 4:59 
AnswerRe: Inet Contol in visual Basic Pin
riced7-May-09 6:24
riced7-May-09 6:24 
QuestionSearch files Pin
M.kohulan6-May-09 22:57
M.kohulan6-May-09 22:57 
AnswerRe: Search files Pin
Tom Deketelaere6-May-09 23:18
professionalTom Deketelaere6-May-09 23:18 
QuestionSet Folder Name as File Name Pin
vijay24826-May-09 22:44
vijay24826-May-09 22:44 
AnswerRe: Set Folder Name as File Name Pin
dan!sh 6-May-09 23:03
professional dan!sh 6-May-09 23:03 
AnswerRe: Set Folder Name as File Name Pin
riced7-May-09 1:02
riced7-May-09 1:02 
GeneralRe: Set Folder Name as File Name Pin
vijay24827-May-09 1:17
vijay24827-May-09 1:17 
GeneralRe: Set Folder Name as File Name Pin
dan!sh 7-May-09 1:42
professional dan!sh 7-May-09 1:42 
GeneralRe: Set Folder Name as File Name Pin
riced7-May-09 1:46
riced7-May-09 1:46 

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.