views:

69

answers:

3

How do i select many buttons at a time on a flowlayoutpanel c#

A: 

Hold CTRL, and click on the buttons.

Ruel
well actually im trying to implement this on a flowlayout panel and i wonder whether it's possible?
jonny
It is possible, I just tested it (WinForms).
Ruel
but my program has this scenario which the buttons are not present right when you open it . well it has a tool which creates a button on runtime
jonny
Well, you cannot select multiple buttons at runtime.
Ruel
okay anyway thanks a lot you answered my question
jonny
+2  A: 

If you're talking about during design-time, just hold Ctrl while clicking each button...or click and drag the mouse to select the buttons you're interested in.

If you're talking about run-time...you can only click one button at a time.

Justin Niessner
even after creating one by one on runtime too?
jonny
+1  A: 

Assuming you're talking about the form designer:

  • Draw a selection box around the controls you'd like to select
  • Hold down ctrl + click or shift+click on the control you'd like to select in addition to your current control.
  • To select all contorls you can use Ctrl + A and then then you can subtract from your selecting using ctrl + click or shift + click

Surprisingly there is an MSDN page which describes the process.

Brian R. Bondy
i've seen that page but i don't think it helps on a flowlayout panel
jonny