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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

CodeCruiserCommented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.