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 6032733
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:22:38+00:00 2026-05-23T05:22:38+00:00

I want to know if the control that got the focus is input control

  • 0

I want to know if the control that got the focus is input control or not using c#

for example

this text box that I am writing the question in it now is input control but the preview text box down there is not because I cant write on it

I need to detect whether or not it is input control and I want to overwrite what being written there also

  • 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-23T05:22:39+00:00Added an answer on May 23, 2026 at 5:22 am

    You want to edit the text people put in your input fields? Add event listeners on the input controls to the text changed event, and run a method that edits the text in the field.

        public Form1()
        {
            InitializeComponent();
            TextBox textBox = new TextBox();
            textBox.TextChanged += CheckInputText;
        }
    
        public void CheckInputText(object sender, EventArgs e)
        {
            // Modify text in the input control.
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an asp:Image. I want this control to display, only if <%#Eval(Image)%> is
Bascially I want to know the best way to hide/show an ASP.NET control from
want to know why String behaves like value type while using ==. String s1
I want to know what exactly is the sequence of calls that occurs when
I got this an asp.net 3.5 page that and I have few tabs (telerik
I mean hypothetically is it possible to control query execution? For example I got
I ask this partly because I want to know the best practice way of
I've got a simple winform. In it has a single TextBox control. In that,
I am using Visual Studio 2008 and VB.NET. I've got a listview control on
I have a submit button that has got a dynamically generated id. I want

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.