Dim Bar As WinForm.NavBarBar = e.Form.Controls("NavBar1")For Each p As WinForm.NavPage In bar.NavPages If p.Butt Then p.Visible = True Else p.Visible = False End IfNext