![]() |
| | #1 |
| Registered User Join Date: Mar 2008
Posts: 1
| using app config to create a dynamic menu I'm trying to create a menu that shows the user a list of options. The options can be added to via the app config file. right now I am using an enum to print the menu but I want to know if I can read the app config file to create it, in case the list has been added to. that way I know the menu is allways updated. |
| dana_cc1 is offline | |
| | #2 |
| Dr Dipshi++ Join Date: Oct 2006 Location: On me hyperplane
Posts: 1,219
| Short answer is yes. I'm sorry I cant help you much more. Closest I know to C# is java, check out how to parse text from files and load the content to your 'menu item' objects. C# probably supports loading object data from XML files, which is quite an easy way to go around things if you are loading multiple varibles for each object (although XML bloats the files quite alot). |
| mike_g is offline | |
| | #3 |
| Registered User Join Date: Apr 2008 Location: USA
Posts: 22
| Your best bet is to learn how to add and reference resource files in VS Express or what ever license version you have, if any. What you want to do could be achieved using an XML resource file that could be considered to be very much like an .ini/initialization file. MSDN online/Express Ed. will certainly have some info. regarding this topic. You may also want to visit "The Code Project" online and access their C# oriented resources. There are plenty of resources and examples out there regarding the topic ranging from ini. system startup, to internationalization using XML resource files to streamline the process. |
| TheRaven is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Delet Frequency in linked list | swishiat.com | C Programming | 16 | 12-13-2003 02:05 AM |
| Dynamic Toolbars | nvoigt | Windows Programming | 1 | 01-11-2002 10:21 AM |
| Menu Items in a dialog app MSVC++ | jinx | Windows Programming | 1 | 10-19-2001 01:44 AM |
| SDI Menu App - MSVC 6 | Unregistered | Windows Programming | 7 | 10-16-2001 09:59 PM |