Windows Develop Bookmark and Share   
 index > Windows Forms General > How to use controls in an executable?
 

How to use controls in an executable?

I have 2 projects, A and B. in a solutions, both windows applications (ie, outputs .exe's). I want to use windows controls defined in A from B. I add the references of A to B but they don't show up in the toolbox... is this because A is not a DLL/class lib? is there a way around thisbesides creating a 3rd library project? project A is quite complicated and weeding out the parts I need into a control is going to be hard
tnyml1947  Friday, May 09, 2008 12:26 AM

It would have to be a dll to show up in the toolbox, but you would have to put it there, it would not show up automatically. If the controls are public you can still get to them in code :

A.someControl foo = new A.SomeControl();

Molku  Friday, May 09, 2008 2:21 AM

It would have to be a dll to show up in the toolbox, but you would have to put it there, it would not show up automatically. If the controls are public you can still get to them in code :

A.someControl foo = new A.SomeControl();

Molku  Friday, May 09, 2008 2:21 AM

You can use google to search for other answers

Custom Search

More Threads

• Accessing variables in form from user control
• ListView BeforeSelect Select Event
• try catch block
• add combo box in gridview in windows application
• Can i create form like "YAhoo Widget"
• How To Display Balloon Tooltip Message For a Single Row in the Datagridview Using C#?
• failed to create component 'axhost' error encountered while adding axwebbrowser to form
• Drag And Drop support for WebBrowser component
• Problem with PictureBox validating
• Using a value to selected the correct item in a comboBox