How to set focus on a field whoes frame/window is embeded in

Posted by ruan007 on 04-Mar-2011 22:39

Hi,

In old ABL frame, we have "wait-for...focus..." statement that when the frame/window is displayed, a field can be in focus automatically. Now I embed the the ABL window into a .NET form using Progress Window Container, but I don't know how to set focus to the first field on the ABL window.

Can anybody shed some light please?

Thanks

All Replies

Posted by Admin on 08-Mar-2011 10:54

Generally the

APPLY "ENTRY" TO IN FRAME .

should work fine. I just tried it in a sample with an embedded window that's not part of the

WAIT-FOR System.Windows.Forms.Application:Run (oForm).

I typically use new .NET Forms as the main menu and run the embedded .w's from there. When APPLY ENTRY won't work just before the WAIT-FOR Application:Run, try to execute the APPLY ENTRY from the Load or Shown event handler of the .NET Form.

This thread is closed