Eine einfache Animation.
Den Code einfach in einen Timer packen, mit etwa 100-300ms Intervall
dot++;
times++;
switch(dot)
{
case 0:
{
label.Text = " ";
}
break;
case 1:
{
label.Text = ".";
}
break;
case 2:
{
label.Text = "..";
}
break;
case 3:
{
label.Text = "...";
}
break;
case 4:
{
label.Text = " ...";
}
break;
case 5:
{
label.Text = " ..";
}
break;
case 6:
{
label.Text = " .";
}
break;
case 7:
{
label.Text = " ";
}
break;
case 8:
{
label.Text = ">";
}
break;
case 9:
{
label.Text = "";
}
break;
}
if (times >= 40)
{
label.Text = "Fertig!"
}
Kommentare zum Snippet