VB.Net: How to access a WinForm Template button click events

  • Thread starter Thread starter deskcheck1
  • Start date Start date
D

deskcheck1

Guest
Hi,

I created a Windows Form template that I instantiate for other forms that share the same controls in the template. Now, how do I access the button click events for each new instance of the form?

For example, WinFormTemplate was instantiated for the following in Form1 (the main form):

Dim ConForm = New WinFormTemplate()
Dim EquipForm = New WinFormTemplate()
Dim FertForm = New WinFormTemplate()

The WinFormTemplate has New, Edit, Copy, Delete, and Save Buttons. When I click any of the buttons, how do I let the Click Event know which form it came from (whether from ConForm, EquipForm, FertForm)?

Appreciate any help.



Marilyn Gambone

Continue reading...
 
Back
Top