ControlSetStyle - window not found

Issue #21 closed
Winter Laite created an issue

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)

  1. Winter Laite reporter

    Tested following commit of August 18, 2022. Please mark as resolved and close. Thanks!

  2. Log in to comment