|
-
Sep 9th, 2004, 01:50 PM
#1
Thread Starter
Lively Member
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?
-
Sep 9th, 2004, 02:12 PM
#2
Lively Member
by implementing the user control with a property that specifies a form... or an application?
'nothin last forever even cold november rain
-
Sep 9th, 2004, 02:29 PM
#3
Thread Starter
Lively Member
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???
-
Sep 9th, 2004, 02:34 PM
#4
Lively Member
i dont think yu can just create a circled reference system, but you can add a new property
VB Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|