How can I make a click on a panel do something in main, instead of a new method?
I only want it to change the text of a label that’s on my panel.
ispiro
0
Newbie Poster
Recommended Answers
Jump to PostWhy not put the code that is in main into a method and then call that method in main and in the click event.
Jump to PostMain is a static method, hence events cannot call an instance of something to call it. So, the answer is no.
All 7 Replies
stbuchok
dotancohen
0
Junior Poster in Training
stbuchok
ddanbe
2,724
Professional Procrastinator
Featured Poster
ispiro
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
ispiro
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.