M
Mr. X.
I have a control.
On that control I have a button.
That is a control (I did it by : add new class, and inherits DataGridView).
On the new dataGridView there is a new property : Button b.
I want to catch events of that button (from the newDataGridView).
What should I do on the eventHandler ? :
AddHandler FNewButton.Click, btnNew_Click
....
Private Sub btnNew_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Me.Click
(Handles what? Me.Click is not right, and b.click cannot be compiled).
Thanks
On that control I have a button.
That is a control (I did it by : add new class, and inherits DataGridView).
On the new dataGridView there is a new property : Button b.
I want to catch events of that button (from the newDataGridView).
What should I do on the eventHandler ? :
AddHandler FNewButton.Click, btnNew_Click
....
Private Sub btnNew_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Me.Click
(Handles what? Me.Click is not right, and b.click cannot be compiled).
Thanks