dcsimg
Results 1 to 10 of 10
  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,158

    Resolved [RESOLVED] Visual Basic 2017: how can i create a new control?

    i add a new control on project.
    but how can i add it on controls toolbar?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    Hyperactive Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    453

    Re: Visual Basic 2017: how can i create a new control?

    Are you talking about a UserControl? Just rebuild your solution, and it should show in your Toolbox window.
    Arve K.

    Please mark your thread as resolved and add reputation to those who helped you solve your problem
    Disclaimer: I am not a professional programmer

  3. #3
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,654

    Re: Visual Basic 2017: how can i create a new control?

    Other than forms, any class that inherits Component, either directly or indirectly, will appear in your Toolbox after your project is built. The Control class, which all controls inherit, is derived from Component. Being a component in this sense literally means that the type can be use din a visual designer.
    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

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    98,654

    Re: Visual Basic 2017: how can i create a new control?

    I'm assuming that you mean that you want to use this control in the same project. If that's not case then you need to add this control to a library project and build that, then store the final DLL somewhere intended for the purpose. You can then right-click the Toolbox and select to add items. You can then add your control to make it available for all projects, just as you can for any other control.
    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

  5. #5

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,158

    Re: Visual Basic 2017: how can i create a new control?

    1st - How can i built a Solution on VS2017?
    2nd - i know add the UserControl, but can i use it on same project? if yes, how?
    VB6 2D Sprite control

    To live is difficult, but we do it.

  6. #6
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    3,618

    Re: Visual Basic 2017: how can i create a new control?

    Quote Originally Posted by joaquim View Post
    1st - How can i built a Solution on VS2017?
    2nd - i know add the UserControl, but can i use it on same project? if yes, how?
    1. Every time you run the program from the IDE it builds the solution.
    2. This has been answered, what don't you understand.

    Are you completely new to VB? Because you have over 3,000 posts. These are very basic questions.

  7. #7

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,158

    Re: Visual Basic 2017: how can i create a new control?

    i'm new with VS2017. and i never used an usercontrol on same project
    VB6 2D Sprite control

    To live is difficult, but we do it.

  8. #8

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,158

    Re: Visual Basic 2017: how can i create a new control?

    "Other than forms, any class that inherits Component, either directly or indirectly, will appear in your Toolbox after your project is built."
    isn't showed, on same project.. that's why i'm getting problems..
    unless, i miss something.. tell me
    VB6 2D Sprite control

    To live is difficult, but we do it.

  9. #9

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,158

    Re: Visual Basic 2017: how can i create a new control?

    i finally i 'fix' it.
    i have seen a youtube video: https://www.youtube.com/watch?v=Og-iGYF_PX8
    so i delete the usercontrol, then i create a new one and compile it.
    then the usercontrol was added on controls toolbox.
    thank you so much for all
    VB6 2D Sprite control

    To live is difficult, but we do it.

  10. #10
    PowerPoster
    Join Date
    Sep 2005
    Location
    Modesto, Ca.
    Posts
    3,618

    Re: [RESOLVED] Visual Basic 2017: how can i create a new control?

    Yeah I've had things not show up for a while. I've had to close and restart the project.

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width


×
By using this site, you agree to the Privacy Policy