Re: Simple form operations?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: William Ryan eMVP (bill_at_NoSp4m.devbuzz.com)
Date: 04/11/04


Date: Sun, 11 Apr 2004 17:01:14 -0400

http://www.knowdotnet.com/articles/application.run.html
"Bent S. Lund" <bstlu@online.no> wrote in message
news:u5lwlh%23HEHA.308@tk2msftngp13.phx.gbl...
> Hi,
>
> I'm a bit confused on the forms subject in CompactFramework.
>
>
> I have a Sub Main instantiating a frmSplash.
> In the OnLoad event of frmSplash i connect to a database.
>
> Then; I want to load frmProjectList, unload frmSplash and generally run
the
> app from there.
>
>
> Module modStart
>
> Public Sub Main()
>
> Dim frmSplash As New frmSplash
>
> Dim frmProjectList As New frmProjectList
>
> frmSplash.Show()
>
> frmProjectList.Show()
>
> frmSplash.Close()
>
>
>
> End Sub
>
> End Module
>
>
>
> What happens is that frmSplash shows, then it closes....and nothing!
>
> The Load event on the frmProjectList is triggered, but no form appears!
>
>
>
>
>
> ANy ideas?
>
> Regards,
>
> Bent
>
>
>
>



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: 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)
  • Form Not Appearing
    ... I Have an application with a Splash form (frmSplash) which gets called from ... a Sub Mainin the modStart module which has the following in: ... The problem I'm having is then frmMenu never comes up. ...
    (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)