Textbox in overwrite mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Abhishek Bhatt
    New Member
    • Sep 2007
    • 36

    Textbox in overwrite mode

    I have a textbox field on my form. By default, it stays in insert mode.
    1) User need to press INSERT button on the keyboard, to change it into overwite mode. Is this possible programatically ?
    2) I need that by deafult, it stays in in the overwrite mode i.e. if someone type something it should overwrite the existing text. How to do this?
    Last edited by Abhishek Bhatt; Sep 17 '07, 08:40 AM. Reason: spelling
  • hariharanmca
    Top Contributor
    • Dec 2006
    • 1977

    #2
    Originally posted by Abhishek Bhatt
    I have a textbox field on my form. By default, it stays in insert mode.
    1) User need to press INSERT button on the keyboard, to change it into overwite mode. Is this possible programatically ?
    2) I need that by deafult, it stays in in the overwrite mode i.e. if someone type something it should overwrite the existing text. How to do this?
    I think you are looking for

    [CODE=vb]SendKeys "{Home}+{En d}"[/CODE]

    In text box gotfocus event

    Comment

    • Abhishek Bhatt
      New Member
      • Sep 2007
      • 36

      #3
      SendKeys "{Insert}"
      worked.
      Thanks

      Comment

      Working...