Simple form operations?

B

Bent S. Lund

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
 
B

Bent Lund

Thanks,

this was very useful information!




Regards

Bent S. Lund
System Developer
MCP VB
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top