المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Drawing to Picturebox problem. Help needed badly



C# Programming
04-13-2012, 03:51 AM
Hello CodeProject. I'm having problems using this codeproject: http://www.codeproject.com/Articles/10162/Creating-EAN-13-Barcodes-with-C

Now it draws fine when I don't use this code in my Form1.cs protected override CreateParams CreateParams { get { CreateParams cp = base.CreateParams; cp.ExStyle |= 0x02000000; // Turn on WS_EX_COMPOSITED return cp; } }
BUT I need the above code because it prevents all my controls from flickering easily. For some reason tho while using that code, the EAN13 barcode won't Draw to the pictureBox at all http://www.barakasoft.com/script/Forums/Images/smiley_confused.gif

Is there a way to edit that EAN13 barcode code to make it able to work while using the CreateParams code up above?

I need the barcode code working but I also can't let my huge application to flicker.

Please help CodeProject http://www.barakasoft.com/script/Forums/Images/smiley_redface.gif I would be so thankful