Results 1 to 2 of 2

Thread: textbox1.SetFocus vbmodal?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2002
    Location
    Holland
    Posts
    24

    textbox1.SetFocus vbmodal?

    I would like to setfocus to a textbox but make sure that the user cant press anywhere else but on the textbox. And only if he clicks enter leaves the textbox.
    Textbox is on a grid and the user should change the text but not be able to click the grid (because then the grd_clickevent happens) and open another textbox before closing the open one.
    Thanks in advance
    Brian
    Homer no function beer well without.
    --Homer Simpson

  2. #2
    Fanatic Member Mad Compie's Avatar
    Join Date
    Aug 2000
    Location
    Kuurne (Belgium)
    Posts
    553
    After each click on the Form, grid or other controls, perform a test if the textbox is visible ; if so, call "Beep()" and do nothing.
    Otherwise, disable all those controls and after the input, enable them again.
    * I AM *

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