Click here to Skip to main content
Licence 
First Posted 7 Apr 2004
Views 31,552
Bookmarked 10 times

Calc Input Box to replace Spin

By | 7 Apr 2004 | Article
Control for entrance of numeric data with the mouse.

 

Introduction

Last week, I needed a control to use in a project (VB6.0). The wanted control should allow the entrance of numeric data through the use of the mouse. I tried to use the control SpinButton, but it was shown deficient and it didn't assist the requirements.   

Points of Interest

You can use this control as OCX or embembed in your project.   All source is supplied. 

I opted to create a float calculator, where the user would have the option of typing the value using the numeric keyboard of the calculator or for the keyboard. Besides facilitating the entrance of big values (tries to take Spin 1 up to 256, using click of the mouse!!).

The result was a control OCX of 20,5 KB (it requests MSVBVM60.DLL). I made this control to solve a practical problem and I didn't have concern with a clean code.

I will be exactly, I used " ActiveX Control Interface Wizard " to connect some properties. I used codes of VB to calculator (CALC.VBP). I joined several parts of codes of third and I made everything to work completely as one.

If somebody finds mistakes in this control, please, order an e-mail and if you do the corrections, I will be thankful when receiving a corrected copy.

PS: I changed the decimal symbol of the code, to maintain pattern with the Brazilian pattern. 

Contact

   E-mail: willians@bb.com.br
   MSN: willian_cpp_br@hotmail.com
   ICQ# 89506722
   Phone: +55  (64) 612-6030
   Fax:     +55 (64)  612-6010

History

   06/04/2004 - Development of the version 1.0

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

WillianBR

Software Developer

Brazil Brazil

Member

Follow on Twitter Follow on Twitter
Developer:
- MS VB6
- C/C++/C#
- VBScript
- JScript
- Clipper
- Cobol
- Natural
- Pascal
- TCL/Tk
- Python
___________________________________
Willian Silva Rodrigues
http://www.williansilva.com.br
http://br.linkedin.com/in/willianbr
--- --- --- ---
Radio(NXTL):55*112*109193
BBM PIN: 238d4349
___________________________________

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 8 Apr 2004
Article Copyright 2004 by WillianBR
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid