Results 1 to 2 of 2

Thread: Ctrl C

  1. #1
    wlho
    Guest

    Question

    i'm creating an new activeX, i hit a problem.
    i'm creating an ActiveX using the MSForm.Textbox, n the textbox can only key in numeric. i can detect the character n not allow the character key into the textbox. but the problem iz if the user use CTRL V to paste the character into the textbox, it can. so, now i 1 to check the data tat user wanna to paste into the textbox first b'for the data goes into the textbox. if the data iz all character, then i'm not allowed it happen. if the data iz all numeric then i let it go...... how to do tat??? iz there anybody know???

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Lightbulb What about

    Using the Text Property Let procedure (of your user control) to check the text being entered (pasted or typed) and validate it there?
    Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment.

Posting Permissions

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



Click Here to Expand Forum to Full Width