Is there any way to alter the default items in VBs toolbox.
I'm sick of having to add components, usually the same ones,
for each new project.
It would be great to have them all there by default.
I know I'm probably being lazy but please help.
Printable View
Is there any way to alter the default items in VBs toolbox.
I'm sick of having to add components, usually the same ones,
for each new project.
It would be great to have them all there by default.
I know I'm probably being lazy but please help.
One way would be to great a generic Project1.Vbp, add all the stuff you want to the tool box, and begin each project with this generic model. Once the project has began, you would do a Save As...give it a new name, thus preserving the generic project.
Thanks Hack.
Guess the best answers are always the simplest.
I must be simpler for not thinking of it!:mad:
Well, you can do almost the thing as Hack said but in a much easier way.
Start a new standard exe project.
Add all the controls you want to have when you create a new project.
Save the project file, with any generic name you like, in the VB\Template\Projects folder.
(The VB is the folder where vb is installed probably c:\Program Files\Microsoft Visual Studio\VB98)
Now every time you bring up the New Project dialog your project will be seen there to open.
Best regards
Simple...thats me!! :D
By the way, Joacim has a STERLING suggestion!!
Great idea thanks
Yes since it's saved as a template you don't have to worry about it being overwritten when you save the new project.
(Unless of course you save it with the same name in the same folder and answer yes on the question if you want to overwrite the project :) Stupid thing to do)
BTW in the Template folder you have subfolders for Forms, UserControls, Classes and so on.
They will show up in there repective Add Form|Class|User Control dialogs.
Best regards
Ok, I'm stupid but not that stupid, I hope. :p
Just need a good name for the new project type!
I would never call you stupid (a little bit silly or crazy perhaps but never stupid ;)).Quote:
Originally posted by GlenW
Ok, I'm stupid but not that stupid, I hope. :p
Just need a good name for the new project type!
I just wanted to make it clear that the name of the folder was Template which actually meant template.
And that it works for Forms, UserControls and Classes as well.
I just repeated this so Hack (that is a little bit stupid :)) would understand as well (Just kidding Hack ;)).
Or it might just have been done to raise my post count, which I BTW hate when people do (and I don't like myself very much today :)).
Best regards
Well I guess the new project template has to be called STUPID.vbp
Thanks for your help Joacim & Hack