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

مشاهدة النسخة كاملة : Windows Form Background



C# Programming
04-25-2010, 12:22 PM
I need form with shaded background.
One way, I can achieve it by making image of shaded color and set it as backgroundImage

Second way, I can use System.Drawing.Drawing2D.LinearGradientBrush class with Form paint event


My question is which one is good practice from the performance point of view ?

Thanks in advance
http://www.barakasoft.com/script/Forums/Images/smiley_smile.gif
Life's Like a mirror. Smile at it & it smiles back at you.- P Pilgrim
So Smile Please