Re-enable a form
- I have a quick question. I start an application with the main form disabled. then I display a splash form. when the splash form closes (3 second timer), I re-enable the main form (frmMain.enabled = .T.) ...but it doesn't re-enable. If I'm running through the IDE, and I click over to the IDE window and then back, the form re-enables, but in EXE mode nothing I do helps.
I've tried frmMain.refresh, no luck. I even tried DOEVENTS. Any ideas, foxfolks?
Answers
- you can run splash screen from frmmain activate event. and make splash screen as modal form..in that case you don't have to disable main form. it will be automatically disabled due to splash screen is modal form..you have to just release splash screen. and control will be automatically return to mainform..but you have to mangage in activate event run splash screen single time..
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 13, 2009 4:06 AM
All Replies
- From what event are you re-enable the form ?
dni - there is a timer on the splash screen. I'm calling frmMain.enabled = .t. from the timer event.
- You may try to call it from destroy event of splash form....
dni - you can run splash screen from frmmain activate event. and make splash screen as modal form..in that case you don't have to disable main form. it will be automatically disabled due to splash screen is modal form..you have to just release splash screen. and control will be automatically return to mainform..but you have to mangage in activate event run splash screen single time..
Please "Mark as Answer" if this post answered your question. :)
Kalpesh Chhatrala | Software Developer | Rajkot | India
Kalpesh's Blog- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 13, 2009 4:06 AM


