-
Mar 11th, 2025, 07:40 PM
#1
Thread Starter
Addicted Member
[RESOLVED] Where is the Spin Ctrl in VB?
Hi, I'm used to working in VBA and there is a spin ctrl in the toolbox, but in VB I have not been able to find one. Do they exist any more?
I am converting a VBA over to VB to utilize more features VB has to offer.
I read that it's from an Active X component, but I can't find where they are or how to install them.
Thanks.
EDIT: I'm using VS 2022
Last edited by FunkMonkey; Mar 11th, 2025 at 07:52 PM.
-
Mar 11th, 2025, 08:19 PM
#2
Re: Where is the Spin Ctrl in VB?
 Originally Posted by FunkMonkey
EDIT: I'm using VS 2022
So to be very clear, you're using VB.Net? If so this thread needs to be moved to the VB.Net section.
As for the spin control, are you talking about the NumericUpDown control?
-
Mar 11th, 2025, 08:22 PM
#3
Re: Where is the Spin Ctrl in VB?
You use the UpDown control from one of the common controls ocxs and set its "buddy" control to a textbox.
in vb6, not .NET, just saw the edit.
-
Mar 11th, 2025, 09:02 PM
#4
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by Niya
So to be very clear, you're using VB.Net? If so this thread needs to be moved to the VB.Net section.
As for the spin control, are you talking about the NumericUpDown control?
Yes, please move sorry
But there is no Numerical Ctrl. I would have used that as that is what I have in VBA. So where can I find it?
-
Mar 11th, 2025, 10:57 PM
#5
Re: Where is the Spin Ctrl in VB?
 Originally Posted by FunkMonkey
But there is no Numerical Ctrl.
No, but there is a NumericUpDown control, which is what was said.
 Originally Posted by FunkMonkey
So where can I find it?
You can find it in the Toolbox, just like the rest of the controls you use. It's in the Common Controls section by default, so if it's not there in your VS then you removed it. You can either add it back explicitly or reset the Toolbox to its original state. It's also in the All Windows Forms section, along with the DomainUpDown control. If you actually don't want to use that control - it's not clear from your posts whether that's the case or not - then you'll need to find an alternative yourself. If that means some ActiveX control then you can add it to the Toolbox with a right click and browsing on the COM Components tab.
-
Mar 12th, 2025, 04:00 PM
#6
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by jmcilhinney
No, but there is a NumericUpDown control, which is what was said.
You can find it in the Toolbox, just like the rest of the controls you use. It's in the Common Controls section by default, so if it's not there in your VS then you removed it. You can either add it back explicitly or reset the Toolbox to its original state. It's also in the All Windows Forms section, along with the DomainUpDown control. If you actually don't want to use that control - it's not clear from your posts whether that's the case or not - then you'll need to find an alternative yourself. If that means some ActiveX control then you can add it to the Toolbox with a right click and browsing on the COM Components tab.
It's not there, nor did I delete it. I need the control why would I delete it. Besides I don't even know how to delete it. Other than drag/drop I would not be able to.
-
Mar 12th, 2025, 04:40 PM
#7
Re: Where is the Spin Ctrl in VB?
 Originally Posted by FunkMonkey
It's not there, nor did I delete it. I need the control why would I delete it. Besides I don't even know how to delete it. Other than drag/drop I would not be able to.
Why it's not there isn't really the issue. If it's not in the toolbox then add it back like jmc suggested.
-
Mar 12th, 2025, 06:28 PM
#8
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by wes4dbt
Why it's not there isn't really the issue. If it's not in the toolbox then add it back like jmc suggested.
That would be great but HOW?? I looked in .Net Frameworks Component/Com/Universal windows. It's not there, so how do I get it?
-
Mar 12th, 2025, 08:15 PM
#9
Re: Where is the Spin Ctrl in VB?
If you went to Choose toolbox items ->.Net Frameworks Components and the NumericUpDown wasn't listed you have something wrong with your VS 2022 installation. Try modify/reinstall Visual Studio 2022
-
Mar 12th, 2025, 09:23 PM
#10
-
Mar 12th, 2025, 09:33 PM
#11
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by wes4dbt
If you went to Choose toolbox items ->.Net Frameworks Components and the NumericUpDown wasn't listed you have something wrong with your VS 2022 installation. Try modify/reinstall Visual Studio 2022
OHHHH. I was looking for spin button. Thanks! That's what VBA calls it.
-
Mar 12th, 2025, 11:52 PM
#12
Re: Where is the Spin Ctrl in VB?
 Originally Posted by FunkMonkey
OHHHH. I was looking for spin button. Thanks! That's what VBA calls it.
Perhaps you should have read posts #2 and #5 then.
-
Mar 13th, 2025, 04:04 PM
#13
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by jmcilhinney
Perhaps you should have read posts #2 and #5 then.
Their not the same. Completely different, so I'll have to adjust my code to work with this.
-
Mar 23rd, 2025, 08:55 AM
#14
Re: Where is the Spin Ctrl in VB?
 Originally Posted by FunkMonkey
Hi, I'm used to working in VBA and there is a spin ctrl in the toolbox, but in VB I have not been able to find one. Do they exist any more?
I am converting a VBA over to VB to utilize more features VB has to offer.
I read that it's from an Active X component, but I can't find where they are or how to install them.
Thanks.
EDIT: I'm using VS 2022
I think I remember the spin control from classic vb.
In vb.net there are numeric updown controls, which is basically a decimal input textbox, with a dedicated spin control built in. There is also a domain updown control with a built in spin control. This can be used with any list, i.e. numbers, strings, etc…
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Mar 23rd, 2025, 10:52 AM
#15
Re: Where is the Spin Ctrl in VB?
I feel that the NumericUpDown control is perhaps not the best control in .NET. Those buttons really add very little. They do indicate that only numbers can be used, but who is going to sit there clicking the up button to enter a value? The mouse wheel might be somewhat better, and I don't know how that behaves with a NumericUpDown, but even so, spinning the mouse wheel is an imprecise way to enter a number.
My usual boring signature: Nothing
 
-
Mar 23rd, 2025, 05:47 PM
#16
Thread Starter
Addicted Member
Re: Where is the Spin Ctrl in VB?
 Originally Posted by Shaggy Hiker
I feel that the NumericUpDown control is perhaps not the best control in .NET. Those buttons really add very little. They do indicate that only numbers can be used, but who is going to sit there clicking the up button to enter a value? The mouse wheel might be somewhat better, and I don't know how that behaves with a NumericUpDown, but even so, spinning the mouse wheel is an imprecise way to enter a number.
Hello Shaggy. Just before I close this I wanted to reply.
I do need the NumericUpDown, but more like the spinner in VBA. It is used to shift between templates for selecting a template, so when they press one of the directions the next template will show up. Sometimes there are only 1 sometimes there are 5, or more. This makes it easier to control the selection of the template to select. With the number available, I'm not sure how that is going to play a role in confusion for the user. These templates could be in the middle of other templates, I sort out which template section to set the min/max values to for the spinner.
Thaks for the support
-
Mar 23rd, 2025, 06:34 PM
#17
Re: [RESOLVED] Where is the Spin Ctrl in VB?
- Coding Examples:
- Features:
- Online Games:
- Compiled Games:
-
Mar 23rd, 2025, 09:23 PM
#18
Re: [RESOLVED] Where is the Spin Ctrl in VB?
 Originally Posted by .paul.
If these templates are being represented by a name or other text then the DomainUpDown is a more appropriate choice but, if they are being represented by a number and that numeric sequence is unbroken then the NumericUpDown is also fine. That said, I think that most people would probably use a ComboBox for this, rather than any up/down control. There's a drop-down button instead of a spinner button and you can still use the arrow keys to scroll through the items in the same way as an up/down control. One thing about an up/down control is that, without typing a value, you must go through intermediate values and may thus raise multiple ValueChanged events, possibly doing pointless intermediate work. With a ComboBox, you can select an item anywhere in the list with two clicks, so you don't need to select the items in between and raise unnecessary events.
-
Mar 24th, 2025, 08:42 AM
#19
Re: [RESOLVED] Where is the Spin Ctrl in VB?
I was thinking that crafting some kind of continuously scrolling control might work well, but that would take a fair amount of work, and it only makes sense if the templates have meaningful names such that users would know to choose A versus B.
My usual boring signature: Nothing
 
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
|