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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:12:32+00:00 2026-05-28T07:12:32+00:00

I am pretty new to C# and programming in general. I am wondering if

  • 0

I am pretty new to C# and programming in general.
I am wondering if there is a way to implement the following feature:

  1. in my C# program have a textbox (named tb1) and button (named bt1).
  2. When I click bt1, my cursor will change to “selector”
  3. I switch to program where I need the value to be taken from
  4. I select text that I need to be copied to my C# program
  5. Selected text will appear in bt1

WindowsXP/Windows Vista/7

PS – I know how to get text from the clipboard and how to set text to the clipboard, what I need is the way to capture ANY text AFTER I press the button.
For example- I have 10 textboxes; each textbox has a button.

The process would be:

  1. button1 click -> select text in another application -> which is auto-pasted to textbox1

  2. button2 click -> select text in another application -> which is auto-pasted to textbox2

  3. button3 click -> select text in another application -> which is auto-pasted to textbox3

etc.

  • 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-28T07:12:32+00:00Added an answer on May 28, 2026 at 7:12 am

    You don’t specify whether the user can click Ctrl-C in step (4) when inside that other application. If so, the selected text can indeed appear in your application: all you need to do is reading the Clipboard object, as in Clipboard.GetText().

    A good introduction with some how-to’s can be found here at CodeProject.


    In the case where step (4) in your question should auto-copy the selected text to the clipboard from a foreign application, consider using an automation-tool like AutoIt or the White Framework instead (more options in this question on automation: What's a good, if any, .NET Windows automation library?).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm pretty new to Python and programming in general, and I was wondering if
I am pretty new to thread-safe programming, and was wondering if I have something
I'm pretty new to programming, and I was just wondering in the following case
I'm pretty new to programming, and I'm creating a simple text-based game.> I'm wondering
I'm pretty new to Android programming so bear with me. I was wondering if
I'm fairly new to Python and programming in general. I have done a few
I am pretty new to programming on Linux. I am trying to implement a
I am new to C# and to programming in General. I am wondering if
I'm pretty new to java (and programming in general), and am having a tough
Hey there, I'm pretty new to programming and I've got a problem with the

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.