Form Not Appearing



Hi

I Have an application with a Splash form (frmSplash) which gets called from
a Sub Main() in the modStart module which has the following in:

Sub Main()
frmSplash.Show
End Sub

Sub ClearSplash()
Unload frmSplash
frmMenu.Show
End Sub

I then have a timer on the frmSplash which calls ClearSplash().

The problem I'm having is then frmMenu never comes up. You can see it in the
taskbar and when you do Alt-Tab, if you select it then when you press enter
it runs btnProfile_Click() as if it's open (5 buttons on the form but only
one button on the form has code). The code for frmMenu:

Private Sub btnProfile_Click()
frmProfileOptions.Show
Unload Me
End Sub

I've tried loading it and then making it visible, making it visible on load,
and setting it as the default form to run on execution (when you hit F5) but
nothing seems to get it to show. Any ideas?

As I said before there's only buttons on the form with only one of them with
code so nothing that would cause it to change its appearance.

Cheers,

Michael


.



Relevant Pages

  • Re: Object was unloaded error?
    ... >> splash screen is now the startup form. ... >> Unload frmSplash ... in the frmSplash. ... >>Private Sub Form_Load ...
    (microsoft.public.vb.general.discussion)
  • Re: Simple form operations?
    ... "Bent S. Lund" wrote in message ... > I have a Sub Main instantiating a frmSplash. ... > In the OnLoad event of frmSplash i connect to a database. ... > Dim frmSplash As New frmSplash ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Form Not Appearing
    ... I Have an application with a Splash form (frmSplash) which gets called ... Sub ClearSplash() ... Unload frmSplash ... Or if you move that code to the timer event in frmSplash. ...
    (comp.lang.basic.visual.misc)
  • Simple form operations?
    ... I have a Sub Main instantiating a frmSplash. ... In the OnLoad event of frmSplash i connect to a database. ... Dim frmSplash As New frmSplash ...
    (microsoft.public.dotnet.framework.compactframework)