Jassimi Jassimi - 1 year ago 90
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

Answer Source

To Simplify, you can use :

MyParentForm.UserControlName1.GroupControlName.Visible = False


CType(MyParentForm.Controls("UserControlName").Controls("GroupControlName"), _
                GroupControl).Visible = False
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download