Results 1 to 4 of 4

Thread: adding references?

  1. #1

    Thread Starter
    Lively Member Ksyrium's Avatar
    Join Date
    Jun 2004
    Location
    Tennessee..yes, we CAN code!!
    Posts
    80

    adding references?

    I have a windows application and a usercontrol library. The windows application references to the usercontrol library to get to a particular usercontrol defined in that class.

    Now I need to reference the windows application from the usercontrol class.

    How do I do that?

  2. #2
    Lively Member Doddddy's Avatar
    Join Date
    Jul 2004
    Location
    Cluj-Napoca, Romania
    Posts
    109
    by implementing the user control with a property that specifies a form... or an application?
    'nothin last forever even cold november rain

  3. #3

    Thread Starter
    Lively Member Ksyrium's Avatar
    Join Date
    Jun 2004
    Location
    Tennessee..yes, we CAN code!!
    Posts
    80
    Right! That's what I'm trying to do, but how? How do I add a reference back to the windows application from my usercontrol class???

  4. #4
    Lively Member Doddddy's Avatar
    Join Date
    Jul 2004
    Location
    Cluj-Napoca, Romania
    Posts
    109
    i dont think yu can just create a circled reference system, but you can add a new property
    VB Code:
    1. public property frm as form
    that represents the form which will host your usercontrol or whatever...
    and then from the usercontrol you can acces your form...
    in your application, when creating your user control specify your form.

    i dont think it's the best way nor that this is what you actually want to do, but i hope it helps.
    'nothin last forever even cold november rain

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