c# - Adding image from folder to dropdown list -



c# - Adding image from folder to dropdown list -

i want add together images folder , list in dropdown . application has folder name flags containing flags images , country name. how add together them dropdown .

try using system.io.directory.getfiles , system.io.path.getfilename

http://msdn.microsoft.com/en-us/library/system.io.directory.getfiles(v=vs.110).aspx

http://msdn.microsoft.com/en-us/library/system.io.path.getfilename(v=vs.110).aspx

something (haven't tried it)

// process list of files found in directory. string [] files = directory.getfiles(yourdirectory); foreach(string file in files) { string language = path.getfilename(file); ddlflags.items.add(new listitem(language, file)); }

next time, improve question describing have tried far, easier help you.

c# visual-studio-2013 office-interop

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

ubuntu - Bash Script to Check That Files Are Being Created -

Php operator `break` doesn't stop while -