Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Winforms: Wait Cursor with info-text

Is there a possibility to show a small infotext beside a wait-cursor. This would be a nice feature, to give some activity information to the user, during he/she is waiting.

like image 720
uhu Avatar asked Sep 18 '26 05:09

uhu


1 Answers

Yes. You must use a label next to the mouse position. just try following codes :

private void pictureBox1_MouseEnter(object sender, EventArgs e)
        {
            pictureBox1.Cursor = Cursors.WaitCursor;
            Label lb = new Label();
            lb.Location = new Point(MousePosition.X-this.Left,MousePosition.Y-this.Top);
            lb.Text = "Your Info";
            this.Controls.Add(lb);

        }
like image 110
Ali Vojdanian Avatar answered Sep 19 '26 17:09

Ali Vojdanian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!