Results 1 to 6 of 6

Thread: Component Name Property Problem[RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Lively Member StoneTheCrows's Avatar
    Join Date
    Dec 2004
    Location
    UK
    Posts
    71

    Resolved Component Name Property Problem[RESOLVED]

    Hi Guys.

    Can any of you advise me?

    I you drop a custom component called say "Fred" onto a form it is automatically named "Fred1", drop another and it will be called "Fred2" etc. So far so good.

    You then create a function that takes a "Fred" as an input parameter, for example:

    public void DoSomethingWithFred(assemblyName.Fred myFred)
    {
    // Some Code
    }

    In this example, how do you get at the Name of myFred? (Fred1 or Fred2 etc.)

    The Name parameter that is shown on the form designer does not seem accessible.

    If I try myFred.ToString() I get something Like "assembly.Fred".

    I'm sure this is a fairly simple matter and that I am just being a bit thick, but any help would be appreciated.
    Last edited by StoneTheCrows; Jun 8th, 2005 at 06:01 PM. Reason: All Done!
    StoneTheCrows

    _______________

    The future will be better tomorrow. (George W. Bush)

    (If you think my post was useful, please Rate it. Thanks)

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