all groups > dotnet windows forms > may 2007 >
You're in the

dotnet windows forms

group:

Shown method for User control


Shown method for User control mahesh.nimbalkar NO[at]SPAM gmail.com
5/29/2007 11:01:35 AM
dotnet windows forms: Hi,

Is there any event like Shown for User Control?

I am instantiating User control once and adding and removing to and
from parent form panel dynamically. I wanted a event which would fire
every time the User control is shown (when added to parent from
panel) like Shown event is for Form.

Thanks.
Re: Shown method for User control mahesh.nimbalkar NO[at]SPAM gmail.com
5/29/2007 12:10:49 PM
Thanks. It seems that it would work. Now I would like to know whether
user control is being added or removed from the parent form panel.

[quoted text, click to view]

Re: Shown method for User control Alex Meleta
5/29/2007 6:36:03 PM

When a control is added to a list the .ParentChanged event is raised by the
control. On changing visibility of the control the .VisibleChanged is raised.

Alex
http://devkids.blogspot.com



[quoted text, click to view]

AddThis Social Bookmark Button