A
Academia
In a UserControl Designer.vb file I have:
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If Not Me.DesignMode Then
MessageBox.Show("Got here " & Me.DesignMode.ToString)
When I Show Designer for a Form that contains a UserControl that contains
this UserControl and then I click the X in the Designer so the Designer
closes the Form, this message box displays:
Got Here False
How come?
What are the rules for Me.DesignMode
Should it be True when the UserControl is exiting?
Really what I need is a UserControl equivalent to the Form Closing event.
Is there anything close?
Protected Overrides Sub Dispose(ByVal disposing As Boolean)
If Not Me.DesignMode Then
MessageBox.Show("Got here " & Me.DesignMode.ToString)
When I Show Designer for a Form that contains a UserControl that contains
this UserControl and then I click the X in the Designer so the Designer
closes the Form, this message box displays:
Got Here False
How come?
What are the rules for Me.DesignMode
Should it be True when the UserControl is exiting?
Really what I need is a UserControl equivalent to the Form Closing event.
Is there anything close?