uhu
uhu

Reputation: 1742

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.

Upvotes: 3

Views: 3070

Answers (2)

Jacob Seleznev
Jacob Seleznev

Reputation: 8131

I recommend to use custom cursor. C# Tutorial - How To Use Custom Cursors

Upvotes: 1

Ali Vojdanian
Ali Vojdanian

Reputation: 2111

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);

        }

Upvotes: 2

Related Questions