I have a form of c sharp, In winch I have Five Button.I want hit all buttons one by one dynamically.
Please send me complete Code of c sharp.
yousafc#
0
Junior Poster in Training
Recommended Answers
Jump to PostTo programmatically press a button in C#, use the PerformClick() method on each button.
b1.PerformClick() b2.PerformClick() b3.PerformClick() b4.PerformClick() b5.PerformClick()
Jump to PostHow does this look.
var buttons = new[] { button1, button2, button3, button4, button5 }; Array.ForEach(buttons, b => b.PerformClick());
All 5 Replies
Mouche
yousafc#
0
Junior Poster in Training
nick.crane
342
Veteran Poster
Mitja Bonca
557
Nearly a Posting Maven
yousafc#
0
Junior Poster in Training
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.