There is a disabled button in a form, i want to make this button enabled, ofcourse using API :)
Printable View
There is a disabled button in a form, i want to make this button enabled, ofcourse using API :)
Code:EnableWindow button1.hWnd
I keep forgeting it is not C++
Code:Declare Function EnableWindow Lib "user32" Alias "EnableWindow" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Thanks... it works
except one button (which I want to enable it), any idea ?
Try
Code:EnableWindow button1.hWnd, 1
If it helps for you to understand, you can use the constants True and False, for enabling (True) and disabling (False).
Still it doesn’t work !
Actually, it works for all buttons except one, this button located in a splash window from a demo program, this demo is time limited, button caption is “Try it” but it is disabled, I tried all the ways to run the demo again but no use, I set the time back, I even delete the windows and program files directory, and install windows from scratch, when I install the program again it says “Security problem”, it seams the it stored some data in the root directory or something like that..