Which three code segments should you use?

You are creating a custom control that displays an image in the background. You notice that when the control is resized the background image. You need to eliminate the background image flicker. Which three code segments should you use? (Each correct answer presents part of the solution. Choose three.)

You are creating a custom control that displays an image in the background. You notice that when the control is resized the background image. You need to eliminate the background image flicker. Which three code segments should you use? (Each correct answer presents part of the solution. Choose three.)

A.
this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);

B.
this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);

C.
this.SetStyle(ControlStyles.UserPaint, true);

D.
this.SetStyle(ControlStyles.ResizeRedraw, true);

E.
this.SetStyle(ControlStyles.Opaque, true);



Leave a Reply 0

Your email address will not be published. Required fields are marked *