1

When I Use Picture (Every Picture) In WinForms in C#.net,My Application is Very Slow.

What Is Solution?

Edit::

I Use Picture From Resource into Background of Form.

Jon Seigel
  • 12,251
  • 8
  • 58
  • 92
Hossein Moradinia
  • 6,116
  • 14
  • 59
  • 85
  • 1
    Are you resizing your pictures to the minimum size needed for the application? In what way are you "using" pictures? – Inisheer Apr 22 '10 at 13:44
  • 2
    This is not nearly enough information to help you. Are you using a picture box? Is the image loading the the file system or a resource? Maybe some example code would be helpful. – Jason Webb Apr 22 '10 at 13:45
  • @ James Yes Always............................. – Hossein Moradinia Apr 22 '10 at 13:47

1 Answers1

1

It isn't likely that a BackgroundImage slows down your form dramatically. At least on a modern machine. However, it does become a lot more noticeable that your form was slow to begin with. The time taken to render the controls is a lot more visible, especially when the background image is dark. The effect is called "flicker", albeit that it isn't the traditional source of flicker.

My post in this thread shows a few cures for it.

Community
  • 1
  • 1
Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536