I love this control and have used it in several projects to date.
However, I am unable to add it to the ToolBox in VS2015 Community edition.
Can anybody offer any suggestions?
Any help would be greatly appreciated.
Printable View
I love this control and have used it in several projects to date.
However, I am unable to add it to the ToolBox in VS2015 Community edition.
Can anybody offer any suggestions?
Any help would be greatly appreciated.
I've never used the Community Edition so I don't know if anything is different there than other editions. In other VS 2015 editions, you would first open a Windows Form in the designer, then right-click the desired section of the Toolbox and select "Choose Items", then browse for the DLL the control is defined in and then check the appropriate control. Have you tried that?
I created a UC in VS2010 Pro.
I can add it to VS2013 Community and VS2015 Community as described.
I CAN add yoiurs in VS2013 Community, but not VS2015 Community.
I can add a reference in the project and use your NumberBox in VS2015Community, just cannot get it in the toolbox.
Any thoughts or ideas?
Hi,
Is there a way to determine if the control is left blank?
.value returns 0
I was just jumping back on to delete my post.
There is no .text method to see if .text ="" but realised there is a .textlength to check if it's 0.
Thanks for your control. Very helpful.
Firstly, Text is a property, not a method. Secondly, of course there's a Text property. Text is a member of the Control class so every control has a Text property. Thirdly, I just took another look at the code, which I haven't looked at in a year or two at least, and I saw the NullableValue property, which includes this header:So, why are you asking me this question in the first place? Read the code for yourself. If that's too much trouble, don't use it. I'm willing to help with actual problems.vb.net Code:
''' <summary> ''' Gets or sets the numeric value stored in the control. ''' </summary> ''' <value> ''' A null reference if the control is blank; otherwise, a <see cref="Decimal" /> value. ''' </value>
I have this tool installed in a VB2013 solution. I created a new solution and the tool doesn't appear in the toolbox and I don't see it in the list when I try to add it. Have the .vb file downloaded. How do I get the tool into my new solution toolbox?
I just tested to make absolutely sure that it would work as I expected and it did. Here's what I did:
1. Downloaded both the NumberBox and SimpleNumberBox code files from post #1 in this thread.
2. Created a new Windows Forms Application project in VS 2013.
3. Right-clicked the project in the Solution Explorer and selected Add -> Existing Item.
4. Navigated to and selected the two downloaded code files.
5. Built the project.
After that, I opened the Toolbox and the two controls were added in a new section at the top.
From post #1:Less functionality but less complexity.Quote:
I've attached the class itself and a solution including the class in a DLL and a test application for putting the control through its paces. I've also included a much simpler class for those with simpler needs.
i dont know how can i use it
i add SimpleNumberBox.vb to my project and add textbox to the forum
but it still can type letters
very good tool
thanks alot for it