Results 1 to 4 of 4

Thread: Form instancing question

  1. #1

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Form instancing question

    Basically, I have three forms

    One is the mdi parent, one's a single time status window and the third will be resusable for channel windows.

    Basically i'd like to know how to reference the status form so that all of the project can access it, i.e. my modules and other forms

    but without having to create another instance of it


    thanks

  2. #2

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    (Users Browsing this Forum: Cander, jesus4u, DevGrp, sogtulakk, ssingh, Jefftopia, hellswraith, ewomack, VBCrazyCoder)

    That many people and none of you can / will help

    :|

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, perhaps it was terrible explanation of your problem... just a guess...

    single-time status window... single time-status window?


    Here's my solution:
    Just instantiate it at the beginning of your project.... in your Super code...

  4. #4

    Thread Starter
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    Seeing it was posted at 12 am I think that's a fair enough excuse

    Thanks for the help, i'd already worked it out the other day

    VB Code:
    1. Public Main As New frmMain
    2.     Public Status As New frmStatus

    Now for the next question:

    If I have a form that is going to be dynamically loaded every time certain data is received from a server, how can I reference these in an index.

    I.e. each form will be "linked" / responsible for a channel

    then, when data comes for that channel, I want to affect the appropriate form?

    I was thinking of using the tag property of the created form, but then what collection would I be looping through to find the appropriate form?

    Hope thats at least a bit more coherent :P

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