0

I was wondering what would be the best way to load buttons into a grid , im building a sample app for my own learning of a pos system and i need to be able to display category so was thinking a top row for the categories and the rest of the buttons would display the products what would my best way of implement this.

I have seen some pos systems also over a scrollwindow to achieve unlimited product selection any ideas would be appreciated

How would I load a button but keep them flowing correctly?

for(int i = 1; i < 30; i++) {
   Button button[i] = new Button();
   // Button customization here...
   ...
   groupBox1.Controls.Add(button[i]);
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
c-sharp-and-swiftui-devni
  • 3,743
  • 4
  • 39
  • 100
  • I strongly recommend WPF for any and all present and future Windows Desktop .Net UIs. winforms doesn't support anything, and the `unlimited scroll` feature you're after is much easier to implement in WPF with a simple [ListBox](http://stackoverflow.com/q/15532639/643085) in WPF due to built-in [UI Virtualization](http://www.youtube.com/watch?v=D3Y6DnFpHCA) – Federico Berasategui Jan 19 '14 at 18:02
  • @HighCore I Suppose it is time to learn wpf but do you have any exmaples of wpf apps – c-sharp-and-swiftui-devni Jan 19 '14 at 18:04

0 Answers0