Results 1 to 4 of 4

Thread: [RESOLVED] Spacebar in the textbox

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Spacebar in the textbox

    I try to avoid user from using space bar when typing the text in the textbox because I don't want to allow empty space being input in the textbox. How to do that?

    If InStr(TxtKrigRasterWorkspace.Text, " ") > 0 Then

  2. #2
    Addicted Member _RaJ_'s Avatar
    Join Date
    Apr 2008
    Location
    India!
    Posts
    198

    Re: Spacebar in the textbox

    vb Code:
    1. Private Sub Text1_KeyPress(KeyAscii As Integer)
    2. If KeyAscii = 32 Then KeyAscii = 0
    3. End Sub


    try This !!

    ●════════════════════════════◄►═════════════════════════●
    ___itš bεttεг tΘ bε απ Θρεπ šiππεг, thαπ α ƒαlšε šαiπt___
    ●════════════════════════════◄►═════════════════════════●
    гαj

  3. #3

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Re: Spacebar in the textbox

    Thank you Deepak Sakpal and RAJ

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