-
Jan 26th, 2018, 03:50 PM
#1
Thread Starter
PowerPoster
[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?
-
Jan 26th, 2018, 04:06 PM
#2
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.
-
Jan 26th, 2018, 09:02 PM
#3
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.
-
Jan 26th, 2018, 09:04 PM
#4
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.
-
Jan 27th, 2018, 02:22 PM
#5
Thread Starter
PowerPoster
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?
-
Jan 27th, 2018, 02:31 PM
#6
Re: Visual Basic 2017: how can i create a new control?
Originally Posted by joaquim
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.
-
Jan 27th, 2018, 02:36 PM
#7
Thread Starter
PowerPoster
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
-
Jan 27th, 2018, 02:48 PM
#8
Thread Starter
PowerPoster
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
-
Jan 27th, 2018, 03:13 PM
#9
Thread Starter
PowerPoster
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
-
Jan 27th, 2018, 03:35 PM
#10
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|