Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

add file to combobox c#

var folder = new DirectoryInfo(folderPath);
var files = folder.GetFiles("*.pdf");

myComboBox.DisplayMember = "Name";
myComboBox.ValueMember = "FullName";
myComboBox.DataSource = files;
myComboBox.SelectedItem = null;
Source by csharpforums.net #
 
PREVIOUS NEXT
Tagged: #add #file #combobox
ADD COMMENT
Topic
Name
2+2 =