Results 1 to 5 of 5

Thread: Creating a form on the fly?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Tucson, AZ, USA
    Posts
    95

    Creating a form on the fly?

    I am working on a small Instant Messenger program for a few friends and I have a quick question. I want a form to popup when a new message is received, much like all the other IM programs out there. My question is, does VB6 have the ability to create forms on a fly. What I mean is if I have one form that is a template for each message, can it be duplicated to popup more than once, incase you get more than one message at a time. Or would I need to create a set of say 10 forms for this purpose and just keep track of which is open and load the next one in line.

    Any ideas or tips you can give is greatly appreciated.

    As always, thanks for the help.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    sure you can... see example
    Attached Files Attached Files

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Tucson, AZ, USA
    Posts
    95
    Awesome!!. Thank you so much

  4. #4
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106
    You can also pre-create an array of forms (your other idea). This seems like it would be faster, so I used the approach in a fast peer-to-peer system.

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373
    Originally posted by Shaggy Hiker
    You can also pre-create an array of forms (your other idea). This seems like it would be faster, so I used the approach in a fast peer-to-peer system.
    I would think in a messaging program you would want to create them on the fly as needed instead of a predefined array since the amount of windows loaded at any time could vary. Why have a predefined array of forms loaded when you never can tell how many you will need

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width