Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
cNumberTextBox.cls
Package: IE_VB.rar [view]
Upload User: davilee3
Upload Date: 2015-04-22
Package Size: 986k
Code Size: 1k
Category:
Browser Client
Development Platform:
Visual Basic
- VERSION 1.0 CLASS
- BEGIN
- MultiUse = -1 'True
- Persistable = 0 'NotPersistable
- DataBindingBehavior = 0 'vbNone
- DataSourceBehavior = 0 'vbNone
- MTSTransactionMode = 0 'NotAnMTSObject
- END
- Attribute VB_Name = "cNumberTextBox"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = True
- Attribute VB_PredeclaredId = False
- Attribute VB_Exposed = False
- Option Explicit
- Private WithEvents mTextBox As TextBox
- Attribute mTextBox.VB_VarHelpID = -1
- Private mTextVal As Long
- Private Sub mTextBox_Change()
- mTextVal = Val(mTextBox.Text)
- End Sub
- Private Sub mTextBox_GotFocus()
- mTextBox.SelStart = 0
- mTextBox.SelLength = Len(mTextBox.Text)
- End Sub
- Private Sub mTextBox_KeyPress(KeyAscii As Integer)
- Dim tCanPress As Boolean
- tCanPress = KeyAscii >= 48 And KeyAscii <= 57
- tCanPress = tCanPress Or KeyAscii = 8
- If Not tCanPress Then
- KeyAscii = 0
- End If
- End Sub
- Public Property Let NumberTextBox(nTextBox As TextBox)
- Set mTextBox = nTextBox
- With nTextBox
- '.Alignment = vbRightJustify
- '.MaxLength = 9
- .Text = "1"
- '.FontName = "System"
- '.fontSize = "12"
- .Appearance = 0
- End With
- End Property
- Public Property Get NumberTextBox() As TextBox
- Set NumberTextBox = mTextBox
- End Property
- Public Property Get TextVal() As Long
- TextVal = mTextVal
- End Property