+ Reply to Thread
Results 1 to 3 of 3

textbox question

  1. #1
    Registered User
    Join Date
    02-15-2006
    Posts
    93

    textbox question

    Good afternoon,

    I have a textbox that I have generating an error message if the user enters a non-numeric number. This works fine but what I want to also happen is that the text in the textbox is highlighted when the user clicks okay on the error message. For example

    Private Sub Textbox1_change()
    If not isnumeric(textbox1) then
    msgreturn = msgbox("It has to be a number")

    'Some code that highlights the value in textbox1
    End if

    End Sub

    Any thoughts?
    Thanks!
    dw

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by toocold
    Good afternoon,

    I have a textbox that I have generating an error message if the user enters a non-numeric number. This works fine but what I want to also happen is that the text in the textbox is highlighted when the user clicks okay on the error message. For example

    Private Sub Textbox1_change()
    If not isnumeric(textbox1) then
    msgreturn = msgbox("It has to be a number")

    'Some code that highlights the value in textbox1
    End if

    End Sub

    Any thoughts?
    Thanks!
    dw
    Hi,

    perhaps something like
    Please Login or Register  to view this content.
    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    02-15-2006
    Posts
    93
    Thanks Bryan.

    That will work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1