Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: Textboxs binding to member variables Pin
Gerry Schmitz3-May-10 21:17
mveGerry Schmitz3-May-10 21:17 
GeneralRe: Textboxs binding to member variables Pin
Vijjuuu.3-May-10 21:19
Vijjuuu.3-May-10 21:19 
Questionhow to validate a wmf image? Pin
deostroll3-May-10 19:16
deostroll3-May-10 19:16 
QuestionGetting Error in : datatable visualizer C# Pin
jojoba20113-May-10 18:01
jojoba20113-May-10 18:01 
AnswerRe: Getting Error in : datatable visualizer C# Pin
ronaldrahme14-Jul-10 2:59
ronaldrahme14-Jul-10 2:59 
QuestionAdding to project Pin
Gene_Sheppard3-May-10 15:00
Gene_Sheppard3-May-10 15:00 
AnswerRe: Adding to project Pin
PIEBALDconsult3-May-10 15:27
mvePIEBALDconsult3-May-10 15:27 
AnswerRe: Adding to project Pin
AspDotNetDev3-May-10 16:01
protectorAspDotNetDev3-May-10 16:01 
If the "applications/options" are just separate EXE's, this is very easy. You keep an XML configuration file that dictates what the menu looks like and which EXE each option opens. You then dynamically build the menu based on the XML file. By loading the XML configuration into memory into a class, you can then keep track of which EXE to launch when a particular menu option is chosen.

If you want to be a little more flexible, you can have the XML file specify 1) the menu layout 2) the DLL to load 3) the method on the DLL to call. You may need other info, such as the class and the namespace. You will then use Reflection to dynamically load the DLL and call the method on the class indicated by the XML configuration. If you want to go that route, start here (this would be a plug-in system, as was suggested by the poster above).

You could also go a third route. You could have your main app be an EXE, then have a class in a different project that dictates the menu handling. It could return a menu object, as well as all the event handling (e.g., load a particular EXE when a menu item is clicked). Your main EXE would call that DLL to ask for the menu. You would then only have to change that DLL whenever you wanted to add items to the menu. That is a recompile, but only of part of the application.

GeneralRe: Adding to project Pin
Gene_Sheppard3-May-10 16:14
Gene_Sheppard3-May-10 16:14 
QuestionPlaceholders with SQL statement Pin
Terence van Schalkwyk3-May-10 9:49
Terence van Schalkwyk3-May-10 9:49 
AnswerRe: Placeholders with SQL statement Pin
SomeGuyThatIsMe3-May-10 9:55
SomeGuyThatIsMe3-May-10 9:55 
AnswerRe: Placeholders with SQL statement Pin
Luc Pattyn3-May-10 10:03
sitebuilderLuc Pattyn3-May-10 10:03 
GeneralRe: Placeholders with SQL statement Pin
Terence van Schalkwyk3-May-10 10:09
Terence van Schalkwyk3-May-10 10:09 
GeneralRe: Placeholders with SQL statement Pin
Pete O'Hanlon3-May-10 11:21
mvePete O'Hanlon3-May-10 11:21 
QuestionClass Instantiation when to use/or not Pin
mprice2143-May-10 9:00
mprice2143-May-10 9:00 
AnswerRe: Class Instantiation when to use/or not Pin
Richard MacCutchan3-May-10 9:45
mveRichard MacCutchan3-May-10 9:45 
GeneralRe: Class Instantiation when to use/or not Pin
mprice2143-May-10 10:41
mprice2143-May-10 10:41 
GeneralRe: Class Instantiation when to use/or not PinPopular
Luc Pattyn3-May-10 12:44
sitebuilderLuc Pattyn3-May-10 12:44 
GeneralRe: Class Instantiation when to use/or not Pin
mprice2144-May-10 3:19
mprice2144-May-10 3:19 
GeneralRe: Class Instantiation when to use/or not Pin
Luc Pattyn4-May-10 3:29
sitebuilderLuc Pattyn4-May-10 3:29 
GeneralRe: Class Instantiation when to use/or not Pin
Richard MacCutchan3-May-10 22:29
mveRichard MacCutchan3-May-10 22:29 
Questiongraphic examples in C # Pin
jack_cia3-May-10 7:43
jack_cia3-May-10 7:43 
AnswerRe: graphic examples in C # Pin
#realJSOP3-May-10 7:54
mve#realJSOP3-May-10 7:54 
AnswerRe: graphic examples in C # Pin
Luc Pattyn3-May-10 8:42
sitebuilderLuc Pattyn3-May-10 8:42 
GeneralRe: graphic examples in C # Pin
dj20783-May-10 17:22
dj20783-May-10 17:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.