How to pass reference of control to a property?
I have a customer control and a datagridview control in one of my windows form. What do I want is to and a property in my customer control and refer to the datagridview, just like refer a contextmenu to a datagridview. then in my customer control I want to access that datagridview. my code is like below, but it doesn't work:
<code>
class windowform
Me.UsCtrl.uDataGridView =Me.myDataGridViewend class
class UsCtrl
private v_rdv as windows.Forms.DataGridView
PublicProperty uDataGridView ()Aswindows.Forms.DataGridView
Get
Return v_rdvEndGetSet(ByVal valueAs windows.Forms.DataGridView )v_rdv= value
EndSetEndProperty</code>
Please help me to figure it out. Thanks in advance.

