CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Selecting Forms

  1. #1
    Join Date
    Mar 2005
    Location
    Missouri
    Posts
    111

    Selecting Forms

    Hey there.

    I have several instances of one form loaded. They all have an instantiated variable "Name." How do I select one of these forms based on the name variable?

    Code:
     Public Sub MakeForms()
    Dim x as New frmBlack(me)
    x.show
    End Sub

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,284

    Re: Selecting Forms

    Can you provide more details, please ¿

  3. #3
    Join Date
    Mar 2005
    Location
    Missouri
    Posts
    111

    Re: Selecting Forms

    It doesn't seem like there's all that much more to tell, honestly. I made numerous instances of the same form. I need to look through all of them till I find the one with the given "Name" variable. The problem is, I have no idea how to do that.

  4. #4
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: Selecting Forms

    I haven't tried this, but would CallByname help. I have a post saved for you
    http://www.codeguru.com/forum/showthread.php?t=338766

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

Featured