Groups | Blog | Home
all groups > vb.net controls > august 2004 >

vb.net controls : Associate an Event with a New Button?


John Rugo
8/10/2004 10:24:31 AM
Hi All,

Can someone tell me how to associate an existing event with a new button?

Dim NewBtn as Button()

I have a paint event called CPPaint(byVal Sender, ..........) Handles
Button1, Button2, etc.....

Now how can I associate my new button(s) with the existing event?

Thanks,
John.

Ken Tucker [MVP]
8/10/2004 12:18:34 PM
Hi,

AddHandler NewButton.Paint, addressof CPPaint

Ken
----------------------------
[quoted text, click to view]
Hi All,

Can someone tell me how to associate an existing event with a new button?

Dim NewBtn as Button()

I have a paint event called CPPaint(byVal Sender, ..........) Handles
Button1, Button2, etc.....

Now how can I associate my new button(s) with the existing event?

Thanks,
John.


John Rugo
8/10/2004 1:07:20 PM
Excellant! Thanks very much.

[quoted text, click to view]

AddThis Social Bookmark Button