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

  • Home
  • SEARCH
  • 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 753687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:55:34+00:00 2026-05-14T14:55:34+00:00

How to highlight the system cursor? Like many screen recording applications do. Ideally, I’d

  • 0

How to highlight the system cursor? Like many screen recording applications do. Ideally, I’d like to display a halo around it.

  • 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-14T14:55:35+00:00Added an answer on May 14, 2026 at 2:55 pm

    For a purely managed solution, the following code will draw an ellipse on the desktop at the current mouse cursor position.

    Point pt = Cursor.Position; // Get the mouse cursor in screen coordinates
    
    using (Graphics g = Graphics.FromHwnd(IntPtr.Zero))
    {        
      g.DrawEllipse(Pens.Black, pt.X - 10, pt.Y - 10, 20, 20);
    }
    

    By using a timer you can update the mouse position every 20ms for example and draw the new hallow (ellipse).

    There are other more efficient ways that I can think of, but they would require unamanged code using system hooks. Take a look at SetWindowsHookEx for more info on this.

    Update: Here is a sample of the solution I described in my comments, this is just rough and ready for testing purposes.

      public partial class Form1 : Form
      {
        private HalloForm _hallo;
        private Timer _timer;
    
        public Form1()
        {
          InitializeComponent();
          _hallo = new HalloForm();
          _timer = new Timer() { Interval = 20, Enabled = true };
          _timer.Tick += new EventHandler(Timer_Tick);
        }
    
        void Timer_Tick(object sender, EventArgs e)
        {
          Point pt = Cursor.Position;
          pt.Offset(-(_hallo.Width / 2), -(_hallo.Height / 2));
          _hallo.Location = pt;
    
          if (!_hallo.Visible)
          {
            _hallo.Show();
          }
        }    
      }
    
      public class HalloForm : Form
      {        
        public HalloForm()
        {
          TopMost = true;
          ShowInTaskbar = false;
          FormBorderStyle = FormBorderStyle.None;
          BackColor = Color.LightGreen;
          TransparencyKey = Color.LightGreen;
          Width = 100;
          Height = 100;
    
          Paint += new PaintEventHandler(HalloForm_Paint);
        }
    
        void HalloForm_Paint(object sender, PaintEventArgs e)
        {      
          e.Graphics.DrawEllipse(Pens.Black, (Width - 25) / 2, (Height - 25) / 2, 25, 25);
        }
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The WPF TextBox natively makes use of the System Highlight color for painting the
I'd like to highlight certain words in the document displayed in an embedded webbrowser
I've found syntax highlighters that highlight pre-existing code, but I'd like to do it
How can I get a multi-platform system colors collection in GTK# (like System.Drawing.SystemColors in
I'd like to have the ability to highlight a number and look it up
I want to highlight C/C++/Java/C# etc source codes in my website. How can I
I basically need to highlight a particular word in a block of text. For
I'm trying to highlight just one specific row in a table using jQuery. The
It is easy to highlight a selected datagrid row, by for example using toggleClass
I need to highlight, case insensitively, given keywords in a JavaScript string. For example:

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.