Problem with a timer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • devonknows
    New Member
    • Nov 2006
    • 137

    Problem with a timer

    hi, ive been working on a timer, to close my splash screen after to 3 seconds on load up the main form. now it goes through all the form_load section and at the end of form load ive put in splashtimer.ena bled = true (interval is already set at 3000) Private splashtimer_tim er() runs and hides frmSplash and Shows MainAlbumForm,

    now the problem i get is when i try and close MainAlbumForm, everytime i click the Close button (top right X) it re-opens after 3 seconds, when i make the exe, i cant stop the program without actually going into taskmanager,

    please any advice you can give on this i would be most greatful, ive even tried putting
    splashtimer.ena bled = false at the end of the Private Sub splashtimer_tim er()

    so any help would be appreciated

    Kind Regards
    Devon.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    I think you'll find that unloading the splash form rather than hiding it will do the trick.

    I admit though, I'm surprised that disabling the timer didn't work.

    Comment

    • sashi
      Recognized Expert Top Contributor
      • Jun 2006
      • 1749

      #3
      Originally posted by devonknows
      hi, ive been working on a timer, to close my splash screen after to 3 seconds on load up the main form. now it goes through all the form_load section and at the end of form load ive put in splashtimer.ena bled = true (interval is already set at 3000) Private splashtimer_tim er() runs and hides frmSplash and Shows MainAlbumForm,

      now the problem i get is when i try and close MainAlbumForm, everytime i click the Close button (top right X) it re-opens after 3 seconds, when i make the exe, i cant stop the program without actually going into taskmanager,

      please any advice you can give on this i would be most greatful, ive even tried putting
      splashtimer.ena bled = false at the end of the Private Sub splashtimer_tim er()

      so any help would be appreciated

      Kind Regards
      Devon.

      Hi there,

      Please post your code segment as it would ease in debuging the code. Good luck & Take care.

      Comment

      Working...