ControlSetStyle - window not found
Issue #21
closed
I believe in theory this code should run in both AHK and Keysharp. It restricts the Edit control to uppercase by setting the Style to “+0x8”.
MyGui := Gui(, "KEYSHARP TESTS")
MyEdit := MyGui.Add("Edit", "w400 h400")
HwndMyEdit := MyEdit.Hwnd
ControlSetStyle("+0x8", HwndMyEdit)
MyGui.Show()
Error message contains:
Uncaught Keysharp exception:
Message: Could not find child control in window title: KEYSHARP TESTS
Comments (3)
-
reporter -
repo owner - changed status to resolved
-
repo owner - changed status to closed
- Log in to comment
Tested following commit of August 18, 2022. Please mark as resolved and close. Thanks!