Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1078069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:40:13+00:00 2026-05-16T21:40:13+00:00

Ok, I know that the new versions of windows do not use the insert

  • 0

Ok, I know that the new versions of windows do not use the insert key by default and you have to program for it. I want to be able to type in my text box and override the content that is in it just like in old windows when you could activate the insert key. This is just for my WPF 4, VB.net Application.

Updated Information:

That what I meant: I need to mimic old terminals. I need to activate the overwrite mode programmatically for all the controls. The same affect as the ‘Insert’ key on the keyboard. Only that key does not work in a WPF environment.

Example I am entering the word world over a text box that says ‘Hello!’:

Textbox Started as: [Hello!]

The Textbox is now [World!]

You will note that the one character exclamation mark stayed because world is not enough characters to replace the ‘!’.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:40:14+00:00Added an answer on May 16, 2026 at 9:40 pm

    Try this out (use this control instead of vanilla TextBoxes):

    public class InsertModeTextBox : TextBox
    {
        public InsertModeTextBox()
        {
            InitializeComponent();
        }
    
        protected override void OnTextInput(TextCompositionEventArgs e)
        {
            var txt = e.Text;
            var len = txt.Length;
            var pos = CaretIndex;
    
            var builder = new StringBuilder();
            if (pos > 0) builder.Append(Text.Substring(0, pos)); // text before caret
            builder.Append(txt); // new text
            if (Text.Length > pos + len) builder.Append(Text.Substring(pos + len)); // text after overwrite
    
            Text = builder.ToString();
            CaretIndex = pos + len;
    
            e.Handled = true;
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know that does apple's Push Notification Server generate new device token
hello i am little new to all this but i want to know that:
We know that malloc() and new operation allocate memory from heap dynamically, but where
I know that we can start new activity with the steps as follows :
I know that to instantiate a new OLEDbCommand object you do this: OleDbCommand command
I know that i can enter/add new properties via code manually into partial classes
I know that we can't overload operator with other meaning, we can't create new
I'm new to PHP programming and I wanted to know that is it possible
I know that eclipse can do this, can Intellij via the new Android support
I'm new to AJAX and PHP but I know that PHP is a server-side

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.