![]() |
| ||
| Custom User Control Thanks in advance i created my own toolbar from user control option i design and add all button ADD,EDIT,DELETE,LOOKUP,CLOSE and build this class and drag on my form now i want to use click event of every button but there is only one click event Public Class Form1 Private Sub Kk_toolbar1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Kk_toolbar1.Click End Sub and i want btndelete_click() thanks Khurram |
| ||
| Re: Custom User Control Was your toolbar based on WinForms ToolBar control? Here's a very simplified example which uses ToolBar control with two ToolStripButton controls, just to show the idea. First the user control itself Public Class UserControl1which "forwards" ToolStripButton.Click events outside of the user control. And here's the form which uses the control Public Class Form2Of course, this is not the only way to do it. You may declare your event parameters differently etc. Hope you get started with this. |
| All times are GMT -4. The time now is 6:12 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC