By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,312 Members | 1,288 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,312 IT Pros & Developers. It's quick & easy.

Custom event in design-time Events tab for a Web user control

P: n/a
Folks,

I am implementing a WebUserControl, which will have its own custom event
StateChanged. Now, I want to add this event to the Events tab in the control
properties, so that the users of my control can set the event handler from
this tab. However, I can't see my custom StateChanged event over there and I
don't know what is the reason. Setting BrowsableAttribute to the public
event property doesn't solve the problem. Any other ideas?

Regards,
George Jordanov Ivanov
Mar 29 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi George,

Thank you for posting.

As for the custom web user control, do you mean the ascx user control? If
this is the case, I'm afraid so far there has limited design-time support
for UserControl. Those design-time property grid or any other design-time
services are designed for custom web server controls. For webserver
control, it can utilize full set of the VS IDE's design-time services and
features.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 30 '06 #2

P: n/a
Thanks Steve! I really know that it has a "limited" design time support, but
still I haven't found it written clearly that it is not possible to have
custom events displayed on the Events tab for .ascx files. I could actually
have properties displayed in the Properties window. However, thank you
again - your reply was exactly what I was looking for! :)

George Jordanov Ivanov
www.givanov.net/blog

"Steven Cheng[MSFT]" <st*****@online.microsoft.com> wrote in message
news:3f*************@TK2MSFTNGXA01.phx.gbl...
Hi George,

Thank you for posting.

As for the custom web user control, do you mean the ascx user control? If
this is the case, I'm afraid so far there has limited design-time support
for UserControl. Those design-time property grid or any other design-time
services are designed for custom web server controls. For webserver
control, it can utilize full set of the VS IDE's design-time services and
features.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 30 '06 #3

P: n/a
My pleasure :)

Please always feel free to post here when there is anything we can help.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Mar 30 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.