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

    程序界面

  • 相关阅读:
    PP: Think globally, act locally: A deep neural network approach to high-dimensional time series forecasting
    PP: Learning representations for time series clustering
    PP: Neural tensor factorization
    PP: Shallow RNNs: a method for accurate time-series classification on tiny devices
    PP: Triple-shapelet networks for time series classification
    How to do high impact research + 实事求是
    PP: A dual-stage attention-based recurrent neural network for time series prediction
    PP: Sequence to sequence learning with neural networks
    PP: Imaging time-series to improve classification and imputation
    (三十五)随便记录
  • 原文地址:https://www.cnblogs.com/luoweihua7/p/1305525.html
Copyright © 2011-2022 走看看