Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 6th, 2004, 11:38 AM
Registered User
 
Join Date: Jun 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to david29118 Send a message via MSN to david29118
Default VB.NET MDI Application

Hello,

I have a MDI Parent form named frmMain and a MDIChild form named frmWelcome.

I am trying to get the MDIChild form to load with the Parent form at startup.

Can someone help me to know what code I use for this and where it should be placed?

Thanks,
David

 
Old July 19th, 2004, 08:20 AM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to James_b_1982
Default

    Private Sub frmMain_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Dim fChild As frmWelcome = New frmWelcome
        fchild.Show()

    End Sub

Also in the project options you need to set frmmain as the startup form

 
Old July 19th, 2004, 12:58 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

usually splash dialogs and/or welcome/login dialogs are displayed as SDI before the main MDI loads, to give time to the application to load. The main MDI is then shown when all initialization/login is done.
Marco





Similar Threads
Thread Thread Starter Forum Replies Last Post
MDI application!!!!! angelboy C# 2005 0 February 23rd, 2007 12:36 PM
MDI application !!!!! angelboy C# 2005 0 February 7th, 2007 06:12 AM
MDI Application phillipjones1988 C# 2005 0 December 3rd, 2006 12:56 AM
MDI Application dayaananthanm VB How-To 1 August 24th, 2006 04:39 PM
VB.NET MDI Application david29118 VB.NET 2002/2003 Basics 3 June 8th, 2004 09:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.