Results 1 to 10 of 10

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

  1. #1

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

    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
    Fanatic Member Arve K.'s Avatar
    Join Date
    Sep 2008
    Location
    Kyrksæterøra, Norway
    Posts
    518

    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
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    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.

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

    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.

  5. #5

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

    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
    5,195

    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,904

    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,904

    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,904

    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
    5,195

    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
  •  



Click Here to Expand Forum to Full Width