i have a form holding a button that, when clicked, needs to perform the actions within another class.
for example,
the user clicks a btn thats says BookNow.
the coding within the btn needs to point to the BookNow class which has information for booking.
can anyone help me with this issue please?
You need to create an instance of the
BookNowclass and call the function on it, from the button event handler.I would avoid calling the button with the same name of the class, as you will run into namespace and naming conflicts.