aaa kljlkj

aaa kljlkj

  • NA
  • 165
  • 0

Convert vb.net to c# problem

May 28 2010 8:25 AM
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

Answers (2)