Home C# GUI
Post
Cancel

C# GUI

ListBox

how to fill the listbox controls

1. Add method

2. Datasource

1
lstPremiers.DataSource = premiers.Keys.ToList();

If you assign a value to a datasource, the user will not be able to add a value to the listbox at runtime.

This post is licensed under CC BY 4.0 by the author.