Ask a questionAsk a question
 

AnswerRe-enable a form

  • Friday, November 06, 2009 4:37 PMGCallaghan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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

  • Saturday, November 07, 2009 4:57 AMKalpesh Chhatrala Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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

All Replies

  • Friday, November 06, 2009 5:43 PMdni Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    From what event are you re-enable the form ?
    dni
  • Friday, November 06, 2009 6:30 PMGCallaghan Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    there is a timer on the splash screen. I'm calling frmMain.enabled = .t. from the timer event.
  • Friday, November 06, 2009 8:36 PMdni Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You may try to call it from destroy event of splash form....
    dni
  • Saturday, November 07, 2009 4:57 AMKalpesh Chhatrala Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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