You can limit the text box of Chinese input [original]

zhaozj2021-02-16  59

You can limit the text box of Chinese input [Original] Keyword VB.NET Shielded Chinese Enter the text box Source according to the opinions of netizens, everyone needs to limit Chinese input, today, I tried, I found a way to limit Chinese input, The test has passed, everyone will try it out, what comments continue to mention, if you wish to add my QQ: 36745349 This is the change made on the basis of yesterday, the test has met everyone's request, if anyone has a better way please look at the following exchange of the code is: 'sunnyxing2004-04-01 last Review Public Class MyTextBox Inherits System.Windows.Forms.TextBox Private m_strValidText As String = "0123456789 -." & Chr (13) .ToString Private m_blnEditable As Boolean = True #Region "Windows Form Designer Generated Code" Public Sub New () MyBase.new () 'This call is required for the Windows Form Designer. InitializationComponent () adds any initialization End Sub 'UserControl1 to clean up the component list after the initializationComponent () call. Protected Overloads Overrides Sub Dispose (ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose () End If End If MyBase.Dispose (disposing) End Sub 'Windows Form Designer Private components required As system.componentmodel.icontainer 'Note: The following procedure is required to use the Windows Form Designer to modify this process using the Windows Form Designer. 'Don't modify it using the code editor.

转载请注明原文地址:https://www.9cbs.com/read-18508.html

New Post(0)