Login Register






[help] Process protection Class filter_list
Author
Message
RE: [help] Process protection Class #2
i assume option strict has been set to 'on'

change the declarations of your constants, option strict on requires variable declarations
Code:
Const iStop As Byte = 0 Const iStart As Byte = 1 Const ProcessPriorityClass As Byte = 29

and change your event routine to have the same signature as the evnthandler (as stated by the error):

Code:
Private Function StopProcessProtection(ByVal sender As Object, ByVal e As System.EventArgs) As Boolean Try StartProcessProtection(iStop) Catch ex As Exception MessageBox.Show(ex.Message & vbNewLine & ex.InnerException.ToString()) End Try End Function

Reply





Messages In This Thread
[help] Process protection Class - by rahul19285 - 09-04-2011, 07:17 AM