[Mono-winforms-list] Dynamic drawing of Images on the form
Maser, Dan
Dan.Maser at inin.com
Thu Sep 13 09:47:19 EDT 2007
You must be very tired, otherwise why all the sleeping? You don't need
any sleeps to be able to accomplish what you're doing.
Overall this is far better than what you had last time. Here's the
idea of what you need to do:
private void t1Elapsed(object source, ElapsedEventArgs e)
{
intCtr++;
if (intCtr == Cntr - 1)
{
intCtr = 0;
}
this.Invalidate(); // Or, just invalidate the rect where
the picture is if you can
}
protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
try
{
PaintFinalRect(enS.EnCodeString((string)a2[intCtr]),
e.Graphics);
}
catch (System.Exception)
{
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20070913/1535cd4f/attachment.html
More information about the Mono-winforms-list
mailing list