Answer the question
In order to leave comments, you need to log in
How to perform one function for all buttons on a form?
There are a lot of buttons on the form, each of which has a unique name corresponding to one of the text files in the program folder. It is required that by clicking on a button in the MessageBox the desired text file is opened. For example, there was a click on a button with name(Name)== Hello . The Hello.txt file should open , if the button name is World , then World.txt .
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question