Click here to Skip to main content
15,895,462 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
Christian Graus7-Sep-09 12:39
protectorChristian Graus7-Sep-09 12:39 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
ShabRaza8-Sep-09 1:54
ShabRaza8-Sep-09 1:54 
General[Message Deleted] Pin
Hurricane30008-Sep-09 7:21
Hurricane30008-Sep-09 7:21 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
ShabRaza9-Sep-09 5:16
ShabRaza9-Sep-09 5:16 
GeneralRe: Pass selected row in Datagrid view to another datagrid on another form Pin
Hurricane30009-Sep-09 9:25
Hurricane30009-Sep-09 9:25 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
dcdhingra8-Sep-09 5:14
dcdhingra8-Sep-09 5:14 
AnswerRe: Pass selected row in Datagrid view to another datagrid on another form Pin
εїзεїзεїз8-Sep-09 6:13
εїзεїзεїз8-Sep-09 6:13 
QuestionAccess Is Denied while checking process terminated or not. Pin
Gagan.207-Sep-09 7:15
Gagan.207-Sep-09 7:15 
Hi all.

I am trying to check whether a process has terminated or not by its process id.
I put my code in a timer object to continuously check whether process has terminated or not.

code is :

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        If Process.GetProcessById(ProcessID).HasExited Then  'processId is publicly defined and doesn't store null value
            Cursor = Cursors.Default
            Timer1.Dispose()
            msgbox("Process has been terminated")
        End If

    End Sub


but each time timer starts, it gives an "Access is Denied" error message at line
If Process.GetProcessById(ProcessID).HasExited Then


what should I do to check whether the process has terminated or not.

Thanks.

Gagan
AnswerRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn7-Sep-09 8:09
sitebuilderLuc Pattyn7-Sep-09 8:09 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Gagan.207-Sep-09 16:48
Gagan.207-Sep-09 16:48 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn8-Sep-09 0:38
sitebuilderLuc Pattyn8-Sep-09 0:38 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Gagan.208-Sep-09 0:46
Gagan.208-Sep-09 0:46 
GeneralRe: Access Is Denied while checking process terminated or not. Pin
Luc Pattyn8-Sep-09 1:05
sitebuilderLuc Pattyn8-Sep-09 1:05 
QuestionDisplay one value in combobox, but use another. Pin
Nielvh7-Sep-09 2:00
Nielvh7-Sep-09 2:00 
AnswerRe: Display one value in combobox, but use another. Pin
Luc Pattyn7-Sep-09 2:44
sitebuilderLuc Pattyn7-Sep-09 2:44 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh7-Sep-09 23:21
Nielvh7-Sep-09 23:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt7-Sep-09 23:40
Johan Hakkesteegt7-Sep-09 23:40 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:01
Nielvh8-Sep-09 0:01 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:11
Johan Hakkesteegt8-Sep-09 0:11 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:21
Nielvh8-Sep-09 0:21 
GeneralRe: Display one value in combobox, but use another. Pin
Johan Hakkesteegt8-Sep-09 0:26
Johan Hakkesteegt8-Sep-09 0:26 
GeneralRe: Display one value in combobox, but use another. Pin
Nielvh8-Sep-09 0:37
Nielvh8-Sep-09 0:37 
QuestionThe Remote Server Returned an error :(411) Length Required Pin
dcdhingra6-Sep-09 20:49
dcdhingra6-Sep-09 20:49 
AnswerRe: The Remote Server Returned an error :(411) Length Required Pin
Hurricane30007-Sep-09 11:07
Hurricane30007-Sep-09 11:07 
GeneralRe: The Remote Server Returned an error :(411) Length Required Pin
dcdhingra8-Sep-09 4:17
dcdhingra8-Sep-09 4:17 

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.