|
-
Nov 13th, 2005, 09:57 AM
#1
Thread Starter
Junior Member
NumericUpDown unit
I have seen programs using the NumericUpDown control that have a unit inside it (e.g. cm). Does anyone know how to do that?
-
Nov 13th, 2005, 02:31 PM
#2
Re: NumericUpDown unit
Are you referring to displaying "cm" in the box as well? If that's the case, then not to my knowledge, since only numbers can be entered into the box...
-
Nov 13th, 2005, 02:32 PM
#3
Re: NumericUpDown unit
How do you know its a NumericUpDown control? Maybe its a ListBox made to look like a NUD control?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 13th, 2005, 04:38 PM
#4
Re: NumericUpDown unit
There is also the DomainUpDown, which you can attatch right to the side of a numericupdown and make it look like one control, just handle the changed event of the domainupdown to convert the numbers inside the numericupdown.
Bill
-
Nov 13th, 2005, 05:27 PM
#5
Re: NumericUpDown unit
 Originally Posted by conipto
There is also the DomainUpDown, which you can attatch right to the side of a numericupdown and make it look like one control, just handle the changed event of the domainupdown to convert the numbers inside the numericupdown.
Bill
Or you could just use a DomainUpDown in the first place. If you populate it programtically it's very easy to have a large number of steps without having to painstakingly add each one yourself. You could probably create an inherited, owner-drawn NumericUpDown that would allow you to include a unit, or there might already be one created by someone else available. The Code Project is the first place I look for stuff like that.
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
|