-
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.
-
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..
Similar Threads
-
By moe188 in forum VB Classic
Replies: 2
Last Post: 03-11-2005, 06:43 PM
-
By Maria Jose Serres in forum dotnet.announcements
Replies: 0
Last Post: 05-28-2003, 10:34 AM
-
By Zahid Iqbal in forum dotnet.announcements
Replies: 0
Last Post: 05-20-2003, 07:06 AM
-
Replies: 1
Last Post: 02-28-2002, 08:26 AM
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks