Results 1 to 3 of 3

Thread: Multiple Forms / Objects (resolved)

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    12

    Resolved Multiple Forms / Objects (resolved)

    Hi!

    I am very new to .NET, so I'm sorry if this is a dumb question.

    I am creating an application with multiple forms, one being a "main" form. Here is my problem:

    I can set this main form as the Startup object. In this case, it automatically calls the New() function to create a new instance. However, if I do this I am not sure how to refer to this automatically created object from the other forms (for example, to call a function or procedure located on this main form).

    I have also tried setting some sort of Module to the startup object, creating a new instance of the "main" form object from there, and showing it. However, the program ends when it reaches the end of this module.

    Thanks!
    Kevin_P86
    Last edited by Kevin_P86; Feb 17th, 2005 at 03:43 PM.

  2. #2
    Frenzied Member tr333's Avatar
    Join Date
    Nov 2004
    Location
    /dev/st0
    Posts
    1,605

    Re: Multiple Forms / Objects

    try reading this topic from the vb.net codebank

    http://vbforums.com/showthread.php?t=313050
    CSS layout comes in to the 21st century with flexbox!
    Just another Perl hacker,

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    12

    Re: Multiple Forms / Objects

    Thank you - that was exactly what I needed.

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