M
maluman
Hello
I am trying to get control over how the cursor looks, and my attempts
failed. If anyone could please help me.
I made a clock count, and the cursor shows only for a moment on my
Windows CE 4.2 device (Psion Workabout PRO). On emulator you'll probably
find, that moving mouse causes cursor to go back to default state. This
source assumes, that you have a button with text "START" on the form and
a timer:
void button1_Click(object sender, System.EventArgs e)
{
if (timer1.Enabled)
{
Cursor.Current = Cursors.Default;
timer1.Enabled = false;
button1.Text = "START";
}
else
{
button1.Text = "STOP";
Cursor.Current = Cursors.WaitCursor;
timer1.Interval = 3000; // 3 seconds for a cursor to appear
timer1.Enabled = true;
}
}
private void timer1_Tick(object sender, System.EventArgs e)
{
Cursor.Current = Cursors.Default;
timer1.Enabled = false;
button1.Text = "START";
}
I am trying to get control over how the cursor looks, and my attempts
failed. If anyone could please help me.
I made a clock count, and the cursor shows only for a moment on my
Windows CE 4.2 device (Psion Workabout PRO). On emulator you'll probably
find, that moving mouse causes cursor to go back to default state. This
source assumes, that you have a button with text "START" on the form and
a timer:
void button1_Click(object sender, System.EventArgs e)
{
if (timer1.Enabled)
{
Cursor.Current = Cursors.Default;
timer1.Enabled = false;
button1.Text = "START";
}
else
{
button1.Text = "STOP";
Cursor.Current = Cursors.WaitCursor;
timer1.Interval = 3000; // 3 seconds for a cursor to appear
timer1.Enabled = true;
}
}
private void timer1_Tick(object sender, System.EventArgs e)
{
Cursor.Current = Cursors.Default;
timer1.Enabled = false;
button1.Text = "START";
}