Hello!
To save time, I'm making a custom control to use at top of my borderless forms.
That custom control have one label to use as title of the form and two buttons, one for close and one to save data.
I define a new property to change the label text at runtime (when is dropped to my form).
My close button as a predefine event (mousedown) just to close parent form.
My problem is to set the event of the "Save" button.
When custom control is dropped inside my form and i double click inside it to fire events, all of them are for the base of custom control (click, mousedown, mouseup, etc).
How i catch the buttons events inside my custom control to write code at runtime?
Don't know if i explained myself correctly.
Another thing! I'm using a class that inherits Panel control, not using a UserControl as base of my custom control!
Thank! :o
To save time, I'm making a custom control to use at top of my borderless forms.
That custom control have one label to use as title of the form and two buttons, one for close and one to save data.
I define a new property to change the label text at runtime (when is dropped to my form).
My close button as a predefine event (mousedown) just to close parent form.
My problem is to set the event of the "Save" button.
When custom control is dropped inside my form and i double click inside it to fire events, all of them are for the base of custom control (click, mousedown, mouseup, etc).
How i catch the buttons events inside my custom control to write code at runtime?
Don't know if i explained myself correctly.
Another thing! I'm using a class that inherits Panel control, not using a UserControl as base of my custom control!
Thank! :o