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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T17:59:12+00:00 2026-06-06T17:59:12+00:00

When I set my control’s Capture property to true, I receive the mouse events

  • 0

When I set my control’s Capture property to true, I receive the mouse events like I expect, but the cursor becomes invisible. Is this expected behavior, and if so, how can I make the cursor displayed when I am capturing it?

Sample Code:

This assumes you have a Form with a TextBox which has the TextChanged event linked appropriately.

Now, the sample code is really for the case of (Form).Capture to keep the sample code short, but I’ve tested it already and it also causes my mouse to disappear.

public partial class MyForm : Form
{
    public MyForm()
    {
        InitializeComponent();
    }

    private void TextBox_TextChanged(object sender, EventArgs e)
    {
        this.Capture = true;
    }
}

Type something in the text box and the mouse will disappear.

  • 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-06-06T17:59:14+00:00Added an answer on June 6, 2026 at 5:59 pm

    Mouse capture interrupts the normal flow of mouse processing which includes setting the cursor, so you should manually set the cursor.

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

Sidebar

Related Questions

I set my control's position on form in resolution like 1280*1024 but when move
Why cant i use code nuggets to set a control property??For example a validationgroup
In .NET, when you set the Control.Enabled property of a Form or a Control
Is it possible to set a tab control style like TSC_BUTTONS on a managed
Environment: .NET 2.0, visual studio 2005 in aspx markup, set a control like: <asp:CheckBox
I am looping over a cursor and have the standard exist loop control set
If I set some control's property Visible=false, I cant see the control in the
I have set Access-Control-Allow-Origin: * but I am still unable to $('element').load('http://....') a page
How to set control focus on Asp.Net user control (ascx file) ?
I have a ListView control set up in details mode with 5 columns. It

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.