I have an application with multiple docked/tabbed panels. I also launch some panels as floating windows. All my panels derive from UserDockControl.
On certain panels I have OK/Cancel buttons which commit changes to the database, or cancel them. I would like to implement support for firing these buttons if/when the user hits Enter/Esc on their keyboard.
This is handled in normal WinForms via the AcceptButton and CancelButton properties of a Form. I see these properties exist for UserDockForm as well, however if I try deriving my panels from UserDockForm I get behaviour I am not happy with - i.e. I can't seem to launch the panels as floating.
Is there a way to implement the AcceptButton/CancelButton support in a panel derived from UserDockControl?
What is the difference between UserDockControl and UserDockForm?
Thanks in advance,