I'm having a problem with user control..
how can i disable from the panel the user control if another user control is selected from menustrip???
here is my code at the moment
Private Sub LabToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LabToolStripMenuItem.Click
If LabToolStripMenuItem.Enabled = True Then
Dim fmLabModuleUC As New LabModuleUC()
fmLabModuleUC.Dock = DockStyle.Fill
Panel1.Controls.Add(fmLabModuleUC)
fmLabModuleUC.Show()
End If
If LabToolStripMenuItem.Enabled = False Then
Panel1.Controls.Clear()
End If
End Sub
hope you'll help me with this..
God bless!