DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 17

Threaded View

  1. #1
    Join Date
    Jun 2006

    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
    End Sub

    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,

    Attached Files Attached Files

Similar Threads

  1. Windows form designer generated code VB
    By Benjamin in forum .NET
    Replies: 2
    Last Post: 04-05-2006, 03:06 AM
  2. Hiding dialup window called from a VB form
    By Jerald in forum VB Classic
    Replies: 1
    Last Post: 02-09-2002, 09:05 AM
  3. They created J#, why couldn't they do VB#?
    By Thomas Eyde in forum .NET
    Replies: 290
    Last Post: 12-22-2001, 02:13 PM
  4. Replies: 10
    Last Post: 09-06-2001, 06:42 PM
  5. Open Access database Form from VB 6.0?
    By Demo in forum VB Classic
    Replies: 7
    Last Post: 07-25-2000, 08:10 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

By using this site, you agree to the Privacy Policy