# Visual basic help

**URL:** <https://forum.kirupa.com/t/visual-basic-help/238785>\
**Category:** programming\
**Created:** [September 15, 2007, 2:08am UTC](https://forum.kirupa.com/t/visual-basic-help/238785 "2007-09-15T02:08:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skull\_demon](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@skull\_demon](https://forum.kirupa.com/u/skull_demon)\
**Post date:** [September 15, 2007, 2:08am UTC](https://forum.kirupa.com/t/visual-basic-help/238785/1 "2007-09-15T02:08:35Z")

</div>

sorry but i’m having problems with visual basic:hangover:  
when i press enter i would like to unload the actual form and go to the next, however this only happens if i really click on the button  
the code im using is:

Private Sub but\_Click()  
but.Default = True  
tmrSplash.Enabled = False  
frmHMMain.Show  
Unload Me  
End Sub

Private Sub Form\_Load()  
ShockwaveFlash1.Movie = (App.Path & “\hangman.swf”)  
End Sub
