C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 03-31-2008, 08:45 AM   #1
Registered User
 
Join Date: Mar 2008
Posts: 1
using app config to create a dynamic menu

Hi,

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   Reply With Quote
Old 04-01-2008, 06:28 PM   #2
Dr Dipshi++
 
mike_g's Avatar
 
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   Reply With Quote
Old 04-29-2008, 11:29 PM   #3
Registered User
 
Join Date: Apr 2008
Location: USA
Posts: 22
Lightbulb

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   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

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


All times are GMT -6. The time now is 11:32 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22