0

I cant seem to find an answer to this issue.

I am opening a form from a user control. I created some public write only properties on the user control, but I cant figure out how to create a reference to the original existing user control to interact with those properties.

any assistance would be appreciated

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by lion8420
0

Make use of the sender object of the form.

You can cast the sender to the type of your control.

  Dim cntrl As New Type
  cntrl = TryCast(Sender,Type)

Edited by Begginnerdev

0

Thank you. I think would solve my problem but I can figure out where the correct sender is located. When I use the load event it seems to have the sender as the current form.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.