User Profile

Collapse

Profile Sidebar

Collapse
rwarren1
rwarren1
Last Activity: Apr 15 '10, 12:34 PM
Joined: Apr 9 '10
Location: North Carolina
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • rwarren1
    replied to Validation of userinput
    Validating user input from a textbox. Alpha characters

    I'm not sure if this is the correct code to use for validating user input. Would someone correct me please. Thank you.

    Code:
    Private Sub txtNewName_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles textNewName.Validating
     
      If Not (txtNewName.Text Like "A-Za-z") Then
        e.Cancel = True
    ...
    See more | Go to post

    Leave a comment:


  • rwarren1
    replied to Validation of userinput
    I was told I need to be in VB.Net forum. I am developing a program in visual studio 2008. Thanks...
    See more | Go to post

    Leave a comment:


  • rwarren1
    replied to Validation of userinput
    Thank you for your reply. Could you give me an idea of how to write the function?What I have is:
    Code:
    Private Sub txtNewName_Validating(ByVal sender As System.Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles textNewName.Validating
    
      If Not (txtNewName.Text Like "A-Za-z") Then
        e.Cancel = True
    
        txtNewName.Select(0, txtNewName.Text.Length)
    
    MessageBox.Show (txtNewName,
    ...
    See more | Go to post
    Last edited by Frinavale; Apr 13 '10, 03:21 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags.

    Leave a comment:


  • rwarren1
    started a topic Validation of userinput

    Validation of userinput

    What is the best way to validate a users input? I need to validate a "Name" entered in a textbox, as well as an enetered "Score". Could someone please help me with this.
    See more | Go to post
No activity results to display
Show More
Working...