You can subsclass
FlowLayoutPanel
and put your methods there. Then multiple of custom controls should be editable in winforms designer without much effort. But I suggest you to rethink your design and rather separate view from the logic. In WPF it's called MVVM. In short: instead of keeping your data in lets say ListBox
and using its instance in every method that needs access or edit data, you'll have List<Item>
, which is much easier to use everywhere and can be bound to anything in the view.