Using a resource file in c# windows application
Posted on 2005-04-21
I am developing a usercontrol which holds a web browser control and has a combo box. The combo box is used to navigate to different files to be loaded in the web browser. Presently, I have my combo box reading a folder(using the file system object) to get the actual files (Word Templates).
I do not want to hard code the directory path into my usercontrol but want to make use of a resource file which will actually hold my templates and not ordinary names. Please note that the web browser control takes a string(url) as a parameter to navigate to the specified location. I just want my control to be independent and not coupled to a folder path.
This is a windows application using C#.
How can I handle this please ?