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.