Request: Extend FlowLayoutPanel1.Controls.Add() method

0
0

Hi,

 

So I’m using quite some custom controls which are placed in FlowLayoutPanels. When doing this at runtime you need use three lines of code:

  1. .controls.add()
  2. .setFillWeight()
  3. .setFlowBreak()

Wouldn’t it make more sense to (optionally) pass 2 and 3 in method 1?

Thanks for considering.

Vincent

  • You must to post comments
0
0

Thanks, I knew I could do that but that seems more work. If someone uses the .add() they are going to want to set those properties too in most cases.

 

Anyway, thanks and  I will keep it as is 🙂

  • You must to post comments
0
0

Hi Vincent,

For the custom logic you want to add, just make an inheritance of the FlowLayoutPanels class and add your new methods or properties.

Good coding,

Kevin (ITG)

  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.