Hi,
How does one programmatically set the command line to have keyboard focus?
I'm programmatically setting an active/focused PaletteSet's visibility to false.
_paletteSet.Visible = false;
I would like to follow this line with code that sets the command line to receive focus.
The PaletteSet for other reasons has KeepFocus = true.
Thanks!
I've tried various Win32 APIs (SwitchToThisWindow, SetForegroundWindow, SetActiveWindow) to no avail. I also tried SendCommand() and SendStringToExecute(activate=true,..) , etc.
I imagine there's a way to do this with the native APIs.
Any ideas? THANKS
Can you set keepfocus to false before visble = false? When you show the palette again, set keepfocus to true.
I don't understand why you would keep focus on a palette that is not visible.
Can you post some code we can try?
I do this:
Autodesk.AutoCAD.Internal.Utils.SetFocusToDwgView();
Paletteset lose focus and you can write in command line.
Can't find what you're looking for? Ask the community or share your knowledge.