|
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
Oh, I didn't realize that you were calling the Edit() from the parent form loading, I thought you were just setting the FocusControl in the event handler. Yes, you will have to wait until the form is loaded and the controls are visible before focus can be set to them. If you were to manually call Focus() on a control in the event, it wouldn't focus, either. Generally, when we have to do something after the form is loaded, we will put a timer on the form and set the tick to about 5-20 ms, and in the form's Load event, we will set it to enabled. In the tick event, disable the timer, and do what you need to do.
|