Jassimi Jassimi - 11 months ago 57
Vb.net Question

change GroupControl visibility of opened usercontrol from the form vb.net

I have one 'UserControl' that opened inside form,
this usercontrol has a 'GroupControl'
how can I make this 'GroupControl' hidden or visible when user click on a button that beings on the form
using vb.net


To Simplify, you can use :

MyParentForm.UserControlName1.GroupControlName.Visible = False


CType(MyParentForm.Controls("UserControlName").Controls("GroupControlName"), _
                GroupControl).Visible = False