Click here to Skip to main content
16,006,065 members
Home / Discussions / C#
   

C#

 
GeneralInterface? Abstract? DLL? Component? please help Pin
sammyh24-Nov-03 5:23
sammyh24-Nov-03 5:23 
GeneralRe: Interface? Abstract? DLL? Component? please help Pin
Heath Stewart24-Nov-03 7:25
protectorHeath Stewart24-Nov-03 7:25 
Generalwww.itbooksearch.com.Huge IT ebook resources,You need not amazon any more. Each $4. Pin
Anonymous24-Nov-03 2:04
Anonymous24-Nov-03 2:04 
Generaldrag & drop image from IE Pin
trythat24-Nov-03 1:48
trythat24-Nov-03 1:48 
GeneralRe: drag & drop image from IE Pin
Heath Stewart24-Nov-03 4:47
protectorHeath Stewart24-Nov-03 4:47 
GeneralRe: drag & drop image from IE Pin
trythat24-Nov-03 6:47
trythat24-Nov-03 6:47 
GeneralUsing custom controls in Windows Forms Pin
Radoslav Bielik24-Nov-03 0:20
Radoslav Bielik24-Nov-03 0:20 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 5:12
protectorHeath Stewart24-Nov-03 5:12 
First, add a Project reference to your Windows Forms project by right-clicking on it, click Add Reference, then click the projects tab. Select the project containing MyControl. This makes sure that no matter which build (debug, release, or any number of custom configurations) you do, both assemblies are the right builds.

Next, forget the toolbox - type in the control into the source manually. If you use the same style/format as the other controls in the form (a field at the top, instantiated in the first secton of InitializeComponent, and the properties set under a specially formatted source comment like the others), you'll see it in the designer next time. If you use the toolbox, it might interpret the assembly location as being different from the one you added in the step above (might, might not).

The toolbox is really for third-party libraries that have one or many class libraries and want to integrated with VS.NET for developer ease and better product visibility/returns. For internal development - as you've seen - it's usually just a pain.

There's really no easier way to do it. Being able to drag a control from the solution or class views to a form would be great - like UserControls in ASP.NET - but I have seen that yet in the features list for VS.NET. Frown | :(

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Using custom controls in Windows Forms Pin
Radoslav Bielik24-Nov-03 5:17
Radoslav Bielik24-Nov-03 5:17 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 10:07
protectorBarry Lapthorn24-Nov-03 10:07 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 10:11
protectorHeath Stewart24-Nov-03 10:11 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 11:25
protectorBarry Lapthorn24-Nov-03 11:25 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 11:28
protectorHeath Stewart24-Nov-03 11:28 
GeneralRe: Using custom controls in Windows Forms Pin
Barry Lapthorn24-Nov-03 11:32
protectorBarry Lapthorn24-Nov-03 11:32 
GeneralRe: Using custom controls in Windows Forms Pin
Heath Stewart24-Nov-03 11:36
protectorHeath Stewart24-Nov-03 11:36 
GeneralToDouble problem Pin
Jose Vicente23-Nov-03 23:17
Jose Vicente23-Nov-03 23:17 
GeneralRe: ToDouble problem Pin
Heath Stewart24-Nov-03 5:07
protectorHeath Stewart24-Nov-03 5:07 
GeneralRe: ToDouble problem Pin
Jose Vicente24-Nov-03 5:08
Jose Vicente24-Nov-03 5:08 
GeneralRe: ToDouble problem Pin
Judah Gabriel Himango24-Nov-03 5:25
sponsorJudah Gabriel Himango24-Nov-03 5:25 
GeneralRe: ToDouble problem Pin
sammyh24-Nov-03 5:28
sammyh24-Nov-03 5:28 
GeneralThanks all Pin
Jose Vicente24-Nov-03 5:29
Jose Vicente24-Nov-03 5:29 
GeneralLost my entire Form design Pin
Nish Nishant23-Nov-03 21:11
sitebuilderNish Nishant23-Nov-03 21:11 
GeneralRe: Lost my entire Form design Pin
Braulio Dez24-Nov-03 1:06
Braulio Dez24-Nov-03 1:06 
GeneralRe: Lost my entire Form design Pin
Stephane Rodriguez.24-Nov-03 8:48
Stephane Rodriguez.24-Nov-03 8:48 
GeneralRe: Lost my entire Form design Pin
Alvaro Mendez24-Nov-03 11:20
Alvaro Mendez24-Nov-03 11:20 

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.