Link forms

What im trying to do is have my main form which has a checked list box...based on what is checked...go to a form that will run whatever was checked. Example:

Program to install:
(checked list box)
Program A
Program B
Program C
Program D

So when a person checks to install Program A and Program C...go to another form that will process this.

Hope I explaned myself enough..

Thanks in advance.

[423 byte] By [Mjman15] at [2007-12-17]
# 1
A factory type pattern might solve your problem.

http://www.c-sharpcorner.com/Language/FactoryPatternsinCSRVS.asp

JamesKnowles at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 2
If you are immediately performing an action as soon as the user selects the list box item then I would suggest that a list box is the wrong type of control. In that case you really just want a button or a hyper link style button instead. That would indicate to the user that an action occurs as soon as they select the item.

Normally I would not expect when checking/unchecking items in a listbox for the program to move off to a new window. But if you really must do this then you just need to hook into the checked change event of the list box.

Phil Wright
www.ComponentFactory.com
Free VS2005 User Interface Controls

PhilipWright at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 3
Yeah i see what your saying. I dont plan i haveing it immediatly perform the work..What I invision is a interface that feels a setup program ( where you have the first screen which is usually a into screen..then you hit next..then it may ask questions..like where do you want to install this to ect..then you hit next and it may ask another question..then you hit finish..and it does everything)

Thats bascially what im trying to do..Im not actully trying to create my own setup program...but im looking for that kind of format for my actual program.

Mjman15 at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...
# 4

Did you have any luck with solving this ?

So a wizard type interface ? You can pick them up from third parties like Infragistics, DevComponents.com might actually you some pain.

James

JamesKnowles at 2007-9-8 > top of Msdn Tech,Windows Forms,Windows Forms General...