hobbes2103 Posted July 16, 2003 Posted July 16, 2003 I have a textbox and I want that if I type "." it automatically turns into "," Is there a special command to do that? Quote
Leaders dynamic_sysop Posted July 16, 2003 Leaders Posted July 16, 2003 Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If e.KeyChar = "." Then e.Handled = True TextBox1.SelectedText = "," End If End Sub Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.