paulwhelan
asked on
Show and Load
Hi
I have a page and when I go to events it has a Load event.
When I double click on it I can do something like
private void ElementLabelControlPropert yPage_Load (object sender, EventArgs e)
{
MessageBox.Show("This is a test");
}
But I want to do a Shown event.
But Shown isnt in the list of Events.
Is there a way to make it appear in the properties?
Thanks
Paul
I have a page and when I go to events it has a Load event.
When I double click on it I can do something like
private void ElementLabelControlPropert
{
MessageBox.Show("This is a test");
}
But I want to do a Shown event.
But Shown isnt in the list of Events.
Is there a way to make it appear in the properties?
Thanks
Paul
There is an event called VisibleChanged at the end of event list. Give it a shot.
ASKER
Thanks htang_us but its the same as the Load Event.
i.e. they both show the message before my page loads.
private void ElementLabelControlPropert yPage_Visi bleChanged (object sender, EventArgs e)
{
MessageBox.Show("test");
}
Is there another event I can use?
Or can I make Show appear in the list of events?
thanks
Paul
i.e. they both show the message before my page loads.
private void ElementLabelControlPropert
{
MessageBox.Show("test");
}
Is there another event I can use?
Or can I make Show appear in the list of events?
thanks
Paul
ASKER
BTW when it says 'Control' as in
CursorChanged - Event raised when the value of the cursor property is changed on Control.
what does Control mean?
Thanks
Paul
CursorChanged - Event raised when the value of the cursor property is changed on Control.
what does Control mean?
Thanks
Paul
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
pauljk1619
The 'Activated' Event Handler is not showing up
I see
AutoSizeChanged
as the first.
Thanks
The 'Activated' Event Handler is not showing up
I see
AutoSizeChanged
as the first.
Thanks
ASKER
By the way
public class ElementLabelControlPropert yPage : PropertyPage
and
public class PropertyPage : UserControl
(UserControl is System.Windows.Forms.UserC ontrol)
Thanks
public class ElementLabelControlPropert
and
public class PropertyPage : UserControl
(UserControl is System.Windows.Forms.UserC
Thanks
ASKER
Interestingly if I change
public class ElementLabelControlPropert yPage : PropertyPage
to
public class ElementLabelControlPropert yPage : Form
I can do
this.Shown
-------------------------- ----
Is it possible to do
public class ElementLabelControlPropert yPage : PropertyPage, Form
it doesnt seem to allow me?
Or is there another way around it?
Thanks
Paul
public class ElementLabelControlPropert
to
public class ElementLabelControlPropert
I can do
this.Shown
--------------------------
Is it possible to do
public class ElementLabelControlPropert
it doesnt seem to allow me?
Or is there another way around it?
Thanks
Paul