Results 1 to 4 of 4

Thread: Deefault properties and design for button 1

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2010
    Posts
    137

    Deefault properties and design for button 1

    hey all
    i've designed mac buttons in vb.net but each project i change the design,propeties and events
    is there a way to make this design,properties and events the default for any new project.
    Thanks in advance

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Deefault properties and design for button 1

    I don't really understand what you mean by "change". Perhaps you could provide a clearer explanation of what you mean.

    That said, the most appropriate course of action would be to create a Windows Forms Control Library project and add your custom controls to that. You can then add your custom controls to the VS Toolbox and add them to any form in any project, just like any other control. When you do, a reference to your assembly will automatically be added to the current project. Whenever you update the source project, the Toolbox item will be updated and you can just rebuild any existing projects to update them to the new version.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 2010
    Posts
    137

    Re: Deefault properties and design for button 1

    how to create windows form control library in vs 2010 express
    Thanks in advance

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Deefault properties and design for button 1

    I'm not 100% sure that VB Express includes the Windows Forms Control Library project template. If not, the alternatives are:

    1. Create a Windows Forms Application project and then change 'Application type' in the project properties from Windows Forms Application to Class Library.

    2. Create a Class Library project and then add a reference to the System.Windows.Forms.dll assembly and, if needed, System.Drawing.dll too.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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