Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
565
UDM_PaneDeactivate and UDM_PaneActivate
posted

Hello and I hope someone can help me. I am really at wits end.

 When I activate the pane I set all controls behind it to be invisible. When I deactivate I tell it to make all controls behind it to be visible.

However, if I should click the start menu button while the pane is activated all the controls behind it return to the visible state. How do I fix this? I've tried addressing the form deactivate, isvisible and LostFocus events (If MakeVisible = False then make these controls invisible) with the same logic in the PaneActivate and PaneDeactivate events to no avail.

Public MakeVisible As Boolean = True

Private Sub UDM_PaneActivate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.ControlPaneEventArgs) Handles UDM.PaneActivate

MakeVisible = False

Me.Panel1.Visible = False

Me.pnlCheckBoxes.Visible = False

Me.lstColumns.Visible = False

Me.Label45.Visible = False

Me.cbSortChecked.Visible = False

Me.btnCheckedFieldForSortAdd.Visible = False

Me.btnChangeColumnOrder.Visible = False

Me.btnEmployeeDone.Visible = False

Me.btnResetSQL.Visible = False

Me.tbQueryText.Visible = False

Me.Button2.Visible = False

Me.Button3.Visible = False

Label60.Visible = False

Me.cbLeftDropDown.Visible = False

Me.Label61.Visible = False

Me.cbRightDropDown.Visible = False

Me.Label59.Visible = False

Me.chkEffectiveDating.Visible = False

Me.DateTimePickerEffectiveDate.Visible = False

End Sub

Private Sub UDM_PaneDeactivate(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinDock.ControlPaneEventArgs) Handles UDM.PaneDeactivate

MakeVisible = True

Me.Panel1.Visible = True

Me.pnlCheckBoxes.Visible = True

Me.lstColumns.Visible = True

Me.Label45.Visible = True

Me.cbSortChecked.Visible = True

Me.btnCheckedFieldForSortAdd.Visible = True

Me.btnChangeColumnOrder.Visible = True

Me.btnEmployeeDone.Visible = True

Me.btnResetSQL.Visible = True

Me.tbQueryText.Visible = True

Me.Button2.Visible = True

Me.Button3.Visible = True

Label60.Visible = True

Me.cbLeftDropDown.Visible = True

Me.Label61.Visible = True

Me.cbRightDropDown.Visible = True

Me.Label59.Visible = True

Me.chkEffectiveDating.Visible = True

Me.DateTimePickerEffectiveDate.Visible = True

End Sub

Parents
No Data
Reply
  • 44743
    posted

    You can try using the PaneHidden and PaneDisplayed events instead. Unlike the PaneDeactivate, the PaneHidden event will not be fired when the application loses focus.

Children