02-12-13, 06:15 PM
كود :
Dim cntrl as Control = Me.Parent
Do While(Not cntrl Is Nothing)
If typeof(cntrl) is Form Then
exit do
Else
cntrl = cntrl.Parent
End If
loop
if not cntrl is nothing then MsgBox (cntrl.Name )