Original Post
I am trying to draw faster with boo (GDI+) and i came across this self.Setstyle(OptimizedDoubleBuffer, true) self.Setstyle(UserPaint, true) self.Setstyle(AllPaintingInWmPaint, true) self.Updatestyles() But i cant use it :| I have tried putting in constructor, in the Load event, in other places. But i allways get this error "Unexpected token:self" self.Setstyle(OptimizedDoubleBuffer, true) self.Setstyle(UserPaint, true) <-- this line self.Setstyle(AllPaintingInWmPaint, true) self.Updatestyles() and before you ask i have imported System.Windows.Forms.Controlstyles aswell as forms etc please help :(