Results 1 to 2 of 2

Thread: form loading

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    6

    form loading

    I have opened a project which has a module , a mdiMain and a child form.I got the problem when i need to show the mdimain from the module sub main .I have written the code as

    sub main()
    dim frmmdi as new form
    frmmdi.show()
    end sub

    the code executes but the form just visible and then it is gone .Plz any one help me to show the mdimain through the module and also a child form from the mdimain.

    Next thing is how to connect to database using oledbconnectionstring.

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    This is because the code continues after the Show call. And when Sub Main is finished the app closes.

    Either use ShowDialog, or Application.Run(frmmdi)
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width