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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -