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 by Alex

Alex
Tue May 29 13:36:03 CDT 2007


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



> 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 by mahesh

mahesh
Tue May 29 14:10:49 CDT 2007

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.

On May 29, 2:36 pm, Alex Meleta <amel...@gmail.com> wrote:
> 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.
>
> Alexhttp://devkids.blogspot.com
>
> > 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.