Showing results for 
Search instead for 
Do you mean 
Community Home Request Access Read Blogs Share Your Ideas Search Community View My Settings
Silver Contributor
Posts: 835
Registered: ‎03-24-2009

7.X LAN: Forms Placement, Key Preview

Any way to set the Where a form will popup? MainView object (with a window style of 2 (on top of SLX) ) ?


Have a form.Set Key Previewt property to true. Added three events keymouse down, up, Onpress. Added a message box to each. So far so good.

click into an edit box, type something, msgbox tells me what key was pressed, YEA.


Is there any way to capture Alt-F4? Esc? Enter? Arrow keys, etc.?

RJ Samp
Posts: 12
Registered: ‎08-02-2009

Re: 7.X LAN: Forms Placement, Key Preview

Sure, set the Left/Top/Width/Height properties of the MainView object.

I don't think you can capture Alt+F4, but the OnmCloseQuery event shodl fire.

Esc/Enter/Arrow keys should also work. besids KeyPress event, have you tried KeyUp/KeyDown?