views:

35

answers:

1

Which one has better performance?

setting image property of one control in design-time or in run-time?

+5  A: 

Doing it at designtime will often just create code that ends up doing it in runtime. So should be about equal.

Arjan Einbu
Agreed. Only variable would be how the image is loaded. Design time resources are stored in the DLL. The OP doesn't state where the other image would be loaded from. Either way, I'd expect this effect to be negligible unless perhaps thousands of these controls are being used (in which case perhaps it shouldn't be a control anyway.)
Drew Noakes