Wed, 08 Sep 2010 09:26:58 +0300, Valdas <valdonas@super.lt> rašė:
> Sveiki, naudoju Visual Studio 2005 ir man reikia greitai keisti uzrasus
> ant
> formos, darau taip:
> Private Sub Form9_Paint(ByVal sender As Object, ByVal e As
> System.Windows.Forms.PaintEventArgs) Handles MyBase.Paint
>
> e.Graphics.DrawString("kazkas", New System.Drawing.Font("Tahoma", 10, 5),
> Geltona, 80, 3)
>
> na ir poto refreshinu cikle forma, beda tame kad matosi formos
> mirksejimas,
> gal yra kitoks budas ne Paint ?
Mirgėjimui išvengti naudojamas "back buffer".
Form.SetStyle(ControlStyles.UserPaint Or
ControlStyles.AllPaintingInWmPaint Or ControlStyles.DoubleBuffer, True)
gal padėtų