Expose custom Server Control's Public Event in IDE's Properties box

Using VB.net in VS 2005 ...
I've written a custom Server Control with a Public Event

Partial Class UserControls_NSLddl
    Inherits System.Web.UI.UserControl
    Public Event BaseBidChanged(ByVal sender As Object, ByVal e As CommandEventArgs)
    Public Property BaseBID() As Integer
        Get
            Return cint(Me.hiddenBaseBID.Value)
        End Get
        Set(ByVal value As Integer)
            Me.hiddenBaseBID.Value = Value
            RaiseEvent BaseBidChanged(Me, Value)
        End Set
    End Property

'(... LOTS MORE CODE - Not shown)

End Class

Open in new window


When I use the custom control in a web page - and select it
 custom control selected in IDE
How do I get the server control's Public Event to appear in The IDE Properties EVENTS box (sample below)
 Properties EVENTS box
LVL 5
volkingAsked:
Who is Participating?
 
CodeCruiserCommented:
0
 
CodeCruiserCommented:
0
 
volkingAuthor Commented:
@CodeCruiser

I've read both. Neither article discuss adding the event to the Properties box. However, one article does mention making a particular event DEFAULT.

When I try the suggested code, I get ...

trash1.bmp
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
volkingAuthor Commented:
@CodeCruiser

And when I try a similar syntax using Brackets ...

trash1.bmp
0
 
CodeCruiserCommented:
Trouble is a lot of tutorials talk about designer support for properties such as

http://www.codeproject.com/KB/cs/propertyeditor.aspx

but I have not seen many talking about events. But there is one

http://stackoverflow.com/questions/142820/design-time-viewing-for-user-control-events

0
 
volkingAuthor Commented:
@CodeCruiser - Thanks ... but your second hyperlink does NOT have a solution either (smile) guess it's a pretty tough problem for everyone.
0
 
volkingAuthor Commented:
Closing because of no answer
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.