1
Answer

Does disabling temporaraly unused controls improve application performance?

J A

J A

17y
2.2k
1
hi all,

I have many controls in a windows form app. currently, I am using "Hide()", when controls are not to be used.

Some of these controls implement Event Handlers.

If I were to Disable the control, as well as hide, would this improve the application performance, eg. enabling the controls only presently needed?
 would the EventHandlers for disabled controls be frozen or stopped?

Thanks in advance for your response,

Jeremy
Answers (1)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y
Use the TimeSpan Structure; look at the documentation of it, it is easy to use.