quote:
Originally posted by Eljay
quote:
Originally posted by Jesus
I would like a function to grey out certain controls (eg. CheckBoxes) in PlusWnd objects
If you mean to disable them, this should do the trick:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), 0);
Actually it would be:
Enable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), true);
Disable:
code:
Interop.Call("user32", "EnableWindow", PlusWnd.GetControlHandle("YourControl"), false);
Because it's a BOOL over at MSDN