selection - How to fill a combobox with available filenames -


I have direcory with the variable amount of files when a C #-window-form is triggered, I want to read all the filenames and show them in the dropdown-blanket box. Pressing a button should give the selected filename how can I do it? Thanks for the help

Resolve:

  System.IO DirectoryInfo myPath = New system Io Directory Info (MyPathini); System in Foreach (myPath.GetFiles (). IO.FileInfo f) {comboBox1.Items.Add (f.Name); }    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -