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
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
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
You can upgrade up to 7.1 and still use version 1.1 of the framework.
It looks like I have 6.2. I am under 1.1 of framework for this project.
What version are you using? I believe these events were added in version 6.3.
I don't show a PaneHidden or PaneDisplayed event in the event dropdown for UDM?
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.