Results 1 to 11 of 11

Thread: Default Toolbox

  1. #1

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479

    Question Default Toolbox

    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.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    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.

  3. #3

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Thanks Hack.
    Guess the best answers are always the simplest.
    I must be simpler for not thinking of it!

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Simple...thats me!!

    By the way, Joacim has a STERLING suggestion!!

  6. #6

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Great idea thanks

  7. #7
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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)

  8. #8
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  9. #9

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Ok, I'm stupid but not that stupid, I hope.

    Just need a good name for the new project type!

  10. #10
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Originally posted by GlenW
    Ok, I'm stupid but not that stupid, I hope.

    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 ).
    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

  11. #11

    Thread Starter
    Hyperactive Member GlenW's Avatar
    Join Date
    Nov 2001
    Location
    Gateshead, England
    Posts
    479
    Well I guess the new project template has to be called STUPID.vbp
    Thanks for your help Joacim & Hack

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width