Results 1 to 4 of 4

Thread: accessing variables in startup form

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046

    accessing variables in startup form

    When the Form1 gets instantiated at startup, what is its name? How do i access variables in Form1 from other forms?

  2. #2
    Shared Member
    Join Date
    May 2005
    Location
    Kashmir, India
    Posts
    2,277

    Re: accessing variables in startup form

    Forms in VB.NET objects created from classes. So to access another object's data from one object the object needs to know about the existence of that Form Object.

    Here is a nice tutorial that explains how to use Forms in VB.NET
    http://www.devcity.net/Articles/94/multipleforms.aspx
    Use [code] source code here[/code] tags when you post source code.

    My Articles

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,222

    Re: accessing variables in startup form

    Don't create duplicate threads.

    one topic = one thread
    one thread = one topic

    Pretty simple.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046

    Re: accessing variables in startup form

    Quote Originally Posted by Shuja Ali
    Forms in VB.NET objects created from classes. So to access another object's data from one object the object needs to know about the existence of that Form Object.

    Here is a nice tutorial that explains how to use Forms in VB.NET
    http://www.devcity.net/Articles/94/multipleforms.aspx
    Thanks for the link!

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