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 .NET Components, 2nd Edition
    Programming .NET Components, 2nd Edition
    More InfoPractical Database Programming with Visual Basic.NET
    Practical Database Programming with Visual Basic.NET
    More InfoVisual Basic .NET All-In-One Desk Reference For Dummies
    Visual Basic .NET All-In-One Desk Reference For Dummies
    More InfoMurach's ASP.NET 4.5 Web Programming with VB 2012 (Training & Reference)
    Murach's ASP.NET 4.5 Web Programming with VB 2012 (Training & Reference)
    More InfoVisual Basic .NET Programming
    Visual Basic .NET Programming
    More InfoDatabase Programming with Visual Basic .NET
    Database Programming with Visual Basic .NET