---
title: "Adding dynamically retrieved file names into a combobox"  
description: "Adding dynamically retrieved file names into a combobox"  
author: "Anurag Chaurasia"  
published: 2011-06-23  
updated: 2011-07-01  
canonical: https://www.mindstick.com/forum/272/adding-dynamically-retrieved-file-names-into-a-combobox  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# Adding dynamically retrieved file names into a combobox

Hello sir,\
Sir,Please help me for [adding multiple](https://www.mindstick.com/forum/33435/adding-multiple-views-to-view-controller-inside-a-tab-controller) [file](https://www.mindstick.com/articles/59/encrypting-and-decrypting-files-using-c-sharp) names into a [combobox](https://www.mindstick.com/articles/57/display-record-according-to-combobox-selection-in-csharp-dot-net) at run time where the file names retrieved dynamically.....

## Replies

### Reply by James Smith

Hi Anurag,\
Will you please explain your question in more detail that from which place you want to retrieve file name ie from a directory where all files are stored and from any other place.\
\
If you want to retrieve it from directory then you can use combination of FileInfo and DirectoryInfo class to retrieve file name.\
\
Thanks.


---

Original Source: https://www.mindstick.com/forum/272/adding-dynamically-retrieved-file-names-into-a-combobox

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
