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

    程序界面

  • 相关阅读:
    Codeforces Round #299 (Div. 2) B. Tavas and SaDDas 水题
    Codeforces Round #299 (Div. 2) A. Tavas and Nafas 水题
    Codeforces Round #262 (Div. 2) E. Roland and Rose 暴力
    2015 UESTC 数据结构专题N题 秋实大哥搞算数 表达式求值/栈
    hdu 3340 Rain in ACStar 线段树区间等差数列更新
    hust 1385 islands 并查集+搜索
    2015 UESTC 数据结构专题H题 秋实大哥打游戏 带权并查集
    2015 UESTC 数据结构专题G题 秋实大哥去打工 单调栈
    2015 UESTC 数据结构专题E题 秋实大哥与家 线段树扫描线求矩形面积交
    2015 UESTC 数据结构专题D题 秋实大哥与战争 SET的妙用
  • 原文地址:https://www.cnblogs.com/luoweihua7/p/1305525.html
Copyright © 2011-2022 走看看