Enable Ctrl+Backspace#2
Conversation
Enabling AutoComplete will also enable 'Delete Whole Word'(Ctrl+Backspace) feature as side-effect. Source: https://stackoverflow.com/a/30269663
|
Related issue for Notepad4: zufuliu/notepad4#904 and zufuliu/notepad4@51fe97e SHAutoComplete(hwnd, SHACF_FILESYS_ONLY | SHACF_AUTOAPPEND_FORCE_OFF | SHACF_AUTOSUGGEST_FORCE_OFF);rough equivalent to following (?): // .AutoCompleteMode = AutoCompleteMode.None; // default None
.AutoCompleteSource = AutoCompleteSource.FileSystem;Same change could be applied to outer/top |
|
Setting Calling Windows API directly to those controls might work, but EnableAutoCompleteOnComboBox(hCombo, option := 0x20000000) {
CBEM_GETEDITCONTROL := 0x0407 ; WM_USER + 7
hEdit := DllCall("SendMessageW", "ptr", hCombo, "uint", CBEM_GETEDITCONTROL, "ptr", 0, "ptr", 0, "ptr")
if !hEdit
hEdit := DllCall("FindWindowExW", "ptr", hCombo, "ptr", 0, "wstr", "Edit", "wstr", "", "ptr")
if !hEdit
return
EnableAutoCompleteOnEdit(hEdit, option)
}
EnableAutoCompleteOnEdit(hEdit, option := 0x20000000) {
; https://devblogs.microsoft.com/oldnewthing/20071011-00/?p=24823
; https://learn.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-shautocomplete
; SHACF_AUTOSUGGEST_FORCE_OFF (0x20000000)
; Ignore the registry default and force the AutoSuggest feature off.
; This flag must be used in combination with one or more of the SHACF_FILESYS* or SHACF_URL* flags.
; AKA. It won't autocomplete anything, but it will allow functionality such as Ctrl+Backspace deleting a word.
DllCall("ole32\CoInitialize", "uint", 0)
DllCall("shlwapi\SHAutoComplete", "uint", hEdit, "uint", option)
DllCall("ole32\CoUninitialize")
}I'll update the PR to suggest |
OK, thanks for the clarify. |
Are going to add commits to apply similar change to: |
|
Done! Is this what you've meant? |
You need to install .NET SDK to view in designer. |
|
That's weird, because it is already installed. Anyway, I've modified WinForm Designer file for .NET too. Can you check it, please? |


Enabling AutoComplete will also enable 'Delete Whole Word'(Ctrl+Backspace) feature as side-effect.
Source: https://stackoverflow.com/a/30269663