I have a form in which Runtime Generated Control (Image, Button, Panel, ...), Approximately 100 Controls ( I am making a card matching game, so the form has a lot of control).
I keep the code generated by the manufacturer and every time the app starts, to load it almost 3-5, all the controls
Bring another window and then come back to my app, the control will be restored again.
How can I stop making the controls again? If you do not have any harm, please give me a simple example in C #.
Any help is appreciated!
I have found this article which states that to do this you have to control the WM_SETREDRAW flag How to do this by calling to set. Although you can stop some controls by updating, are you sure that you can not reduce the number of controls on the page and go to this issue? 100 controls are very much like and can be an indication that you need many ideas.
Enjoy!
Comments
Post a Comment