Click here to Skip to main content
16,015,481 members

Comments by wauters (Top 5 by date)

wauters 29-Apr-12 10:13am View    
Solved :
I added next to the Class
Public Event ButtonClick(ByVal sender As System.Object, ByVal e As System.EventArgs)
and next line at the end of sub Buttons_Click
RaiseEvent ButtonClick(sender, e)
Now it's working fine and I can expand the functionality of the component.
Thanks for your hints.
wauters 29-Apr-12 9:43am View    
I believe you helped me on the right way.
Indeed, the SelectedButton Property was written in order to use it on the fly in the calling form.
But being an old man having difficult to understand event stuff, it will take me some time to implement the changes in ButtonsTemplate.
wauters 29-Apr-12 8:21am View    
ButtonsTemplate is a compiled control dll made with enclosed code.
In the calling Form1 I want to know which button was clicked.
I try this by calling event Object_Click. But this one is never triggered.
wauters 29-Apr-12 7:40am View    
OK, setting the colors can be done easier.
But let's concentrate on my question.
After adding control ButtonsTemplate to Form1, and when pressing on any of the buttons, I want to be notified about which button was pressed.
I tried this with the event Object_Click. It's here I am stucked
Thanks anyway for the quick reply.
wauters 29-Apr-12 6:39am View    
The rubbish code is because after subsequent clicks on the buttons only one should be colored red and all the others should be white.
But that was not the question : in my calling Form1 I want to know which button was pressed.