How To: Launch a MDI Form from Module in VB.NET 2003

DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: How To: Launch a MDI Form from Module in VB.NET 2003

  1. #1
    Join Date
    Nov 2003
    Agua Dulce, CA

    How To: Launch a MDI Form from Module in VB.NET 2003

    I've set my forms IsMDIContainer property to True but forms icon in Solution Explorer still shows non-MDI icon.

    Form will only launch with mdiForm.Showdialog(), Crashes with mdiForm.Show

    I'm trying to launch the mdiform from within Sub Main() in Module1

    Any suggestions?
    Last edited by JeffMurdock; 03-06-2006 at 12:18 AM.

  2. #2
    Join Date
    Dec 2004
    I have tested about your problem in my machine.
    Yeah. The MDI doesn't shown when the application is running.
    If you want to show MDI from Sub Main, you need to write this code.

    Module Module1
    Public Sub Main()
    Dim objMDI As New frmMain
    Call Application.Run(objMDI)
    End Sub
    End Module
    Hope it solve your problem.
    Please let us know your result.
    Good Luck..
    Best Regards,
    Michael Sync

    The more you share,The more you get

Similar Threads

  1. Mdi child form
    By moe188 in forum VB Classic
    Replies: 2
    Last Post: 03-11-2005, 06:43 PM
  2. Replies: 0
    Last Post: 05-28-2003, 10:34 AM
  3. Replies: 0
    Last Post: 05-20-2003, 07:06 AM
  4. Form Management in .net vs 6.0
    By TMachi in forum .NET
    Replies: 1
    Last Post: 02-28-2002, 08:26 AM
  5. Detecting change of MDI child form
    By Tim Coulter in forum VB Classic
    Replies: 20
    Last Post: 02-01-2001, 06:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center