By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,652 Members | 1,842 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,652 IT Pros & Developers. It's quick & easy.

Textbox in overwrite mode

P: 36
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?
Sep 17 '07 #1
Share this Question
Share on Google+
2 Replies


hariharanmca
100+
P: 1,977
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

Expand|Select|Wrap|Line Numbers
  1. SendKeys "{Home}+{End}"
In text box gotfocus event
Sep 17 '07 #2

P: 36
SendKeys "{Insert}"
worked.
Thanks
Sep 17 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.