Convert vb.net to c# problem
hi all
i can't convert this code(Red Code) to c#
who can best convert this code with out problem?
Public Sub HookKeyboard()
callback = New KeyboardHookDelegate(AddressOf KeyboardCallback)
KeyboardHandle = SetWindowsHookEx(13, callback, Process.GetCurrentProcess.MainModule.BaseAddress, 0)
If KeyboardHandle <> 0 Then
Label1.Text = "Active"
Label1.ForeColor = Color.DarkGreen
End If
End Sub