Maileen said:
When i work with C++ builder i've created my own control (component
visual or not visual).
I would like to do the same under MS VB.NET but i've never done it.
Here are the thing that i would like to do :
1. control has to work under VB.NET and VC.NET. Which technology should
be used in this case ?
Use VS.Net (Visual Studio). Any language will do as long as you remain CLS compliant.
(Look in the AssemblyInfo file of your project)
2. I would like to make this visual control appear in my toolbox, so
waht have i to do for that ?
Start a new project, select the standard 'Windows Application' type. To that solution,
Add another project, but select the 'Windows Control Library' type. (Use appropreate
names for the projects, ex: TestApp, and FlatButtonControl etc. ;-)
Build your control to some workable state (give it some functionality to get started)
and then go to your application project and add a reference to its Reference
list. In the Reference dialog, choose the Projects tab, where your User control project
should be listed. Adding that reference should add the user control to your toolbox
in the My User Controls section. From there you can use it like any other control and
can put the finisheing touches on your control.
Once done with the control, configure (the UC project) for a Release build, and build
the project. Then copy that .dll to a safe place that will accessable from your other
projects. When you want to add that control your later projects, you again have to
add a reference to it, only this time it will be from the .Net tab in the Reference dialog,
and you may have to Browse to the location where you put it.
LFS