hi guys..
am having 10 buttons on my windows form and if at least 3 of the buttons are clicked, an error should be thrown......pls i need ur help...thanks
esedee
0
Newbie Poster
Recommended Answers
Jump to PostSomething like this,
declare an integer variable in your class
int buttonsClicked = 0;
Then in each click handler for each button just increment this variable, followed by a call to a function to be written a bit later...
buttonsClicked++; error(); …
All 4 Replies
james6754
39
Junior Poster
Mitja Bonca
557
Nearly a Posting Maven
zid8ne
0
Newbie Poster
esedee
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.