I am herewith develop an application but I have created a class which calls button events(i.e. enable or visible).
I am actually created the button events class(classfrmLoad) for the way which buttons should be enabled and visible when each & every form loading.
There are 6 buttons in the forms (frm1, frm2 etc.,) like btnAdd, btnEdit, btnCancel etc., i don't want to display the buttons(visible/enable) while loading the form.
Public Class ClassfrmLoad
Dim btnAdd As New Button Dim btnEdit As New Button Private Sub FormLoad() Me.btnAdd.Visible = True Me.btnAdd.Enabled = True Me.btnEdit.Visible = True Me.btnEdit.Enabled = False End Sub
Here is the question: How can i call this class(classfrmLoad) events to alter (enable/visible) the buttons positioned in the forms(frm1, frm2, etc.,) and how to get the buttons events in those forms?
Edited 1 Year Ago by vijaycare