I have a Button Created in .NET Windows Form.

In a AsyncCallBack Procedure, I need to change the enabled property of the button to false. I tried using Reflection.Prop ertyInfo.

The Code goes like this
Code:
Dim pi As System.Reflection.PropertyInfo = btnLogin.GetType.GetProperty("Enabled")
pi.SetValue(btnLogin, False, Nothing)
But I am getting an exception...