Wprowadzanie dp TextBox'a tylko cyfr

VB.NET
Copy to clipboard
specta
  1. Private Sub Dimensions_TextChanged(sender As Object, e As EventArgs) Handles Width_TB.TextChanged,
  2.                                                                              Height_TB.TextChanged,
  3.                                                                              Width_TB.TextChanged
  4.    If Not IsNumeric(sender.Text) Then sender.text = ""
  5.    If sender.Text.contains(".") Then
  6.         sender.text.replace(".", ",")
  7.         sender.select(sender.text.length, 0)
  8.    End If
  9. End Sub          

    Leave a comment

     
    Visual verification
     

    Related books

    More InfoLearning Visual Basic .Net
    Learning Visual Basic .Net
    More InfoBeginning Visual Basic 2015
    Beginning Visual Basic 2015
    More InfoProgramming Microsoft® Visual Basic® .NET (Core Reference) (Developer Reference)
    Programming Microsoft® Visual Basic® .NET (Core Reference) (Developer Reference)
    More InfoPractical Database Programming with Visual Basic.NET
    Practical Database Programming with Visual Basic.NET
    More InfoVisual Basic 2015 Unleashed
    Visual Basic 2015 Unleashed
    More InfoMurach's Visual Basic 2015
    Murach's Visual Basic 2015
    More InfoProgramming Microsoft® Visual Basic® .NET for Microsoft Access Databases (Developer Reference)
    Programming Microsoft® Visual Basic® .NET for Microsoft Access Databases (Developer Reference)
    More InfoMicrosoft Visual Basic .NET Programming for the Absolute Beginner
    Microsoft Visual Basic .NET Programming for the Absolute Beginner