Problem with creating Multiple instances of Form in VB!
In my currently under-development application, I need to create multiple instances of a Form with no title bar (ControlBox = False). I do it this way ...
Private oForm as frmNote
Public Sub CreateFormInstance()
Set oForm = new frmNote
This code works perfect and creates the multiple instances of Form called frmNote. However, I'm facing one very interesting problem with it! When a new instance of frmNote is created and it's hidden behind any already open Application window, whenever I click frmMain (the main form which has a button to create instances of frmNote) Title bar, the instance of frmNote, which was behind a certain application window comes in front of the Application window automatically! Why this happens so? I don't want this to happen. Any work-around for this problem?
To put my problem in a better way, I have created a sample VB Project, which has similar functionality coded. I request you to please download the attached ZIP file and run it from your IDE. All the necessary information to mimic my problem situation is written on the Form. I don't understand why this problem occur as I never faced such issue before!
Eagerly waiting for your reply ...
Thanks & Regards,
By Benjamin in forum .NET
Last Post: 04-05-2006, 03:06 AM
By Jerald in forum VB Classic
Last Post: 02-09-2002, 09:05 AM
By Thomas Eyde in forum .NET
Last Post: 12-22-2001, 02:13 PM
Last Post: 09-06-2001, 06:42 PM
By Demo in forum VB Classic
Last Post: 07-25-2000, 08:10 AM
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