2
Reply

Convert vb.net to c# problem

aaa kljlkj

aaa kljlkj

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