zoukankan      html  css  js  c++  java
  • VB.net检测输入内容

    使用类CheckInput.vb

    Public Class CheckInput


    读取数字串

    读取字符串

    读取符号

    按照Lower(小写字母),Upper(大写字母),All(所有字母)读取字符串

    End Class

    窗体代码

    Imports ClassVB.CheckInput

    Public Class Form1

        
    Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged

        
    End Sub

        
    Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged

            
    Dim str As String = TextBox1.Text.ToString
            
    ' TextBox2.Text = Convert.ToString(ReturnNumber(str))
            TextBox2.Text = ReturnNumber(str).ToString
            TextBox3.Text 
    = ReturnStr(str)
            TextBox4.Text 
    = ReturnSymbol(str)
            TextBox5.Text 
    = ReturnChar(str"Lower")
            TextBox6.Text 
    = ReturnChar(str"Upper")
        
    End Sub

    End Class

    程序界面

  • 相关阅读:
    LeetCode OJ 112. Path Sum
    LeetCode OJ 226. Invert Binary Tree
    LeetCode OJ 100. Same Tree
    LeetCode OJ 104. Maximum Depth of Binary Tree
    LeetCode OJ 111. Minimum Depth of Binary Tree
    LeetCode OJ 110. Balanced Binary Tree
    apache-jmeter-3.1的简单压力测试使用方法(下载和安装)
    JMeter入门教程
    CentOS6(CentOS7)设置静态IP 并且 能够上网
    分享好文:分享我在阿里8年,是如何一步一步走向架构师的
  • 原文地址:https://www.cnblogs.com/luoweihua7/p/1305525.html
Copyright © 2011-2022 走看看