المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Resetting Objects to startup-state



C# Programming
07-16-2009, 05:21 PM
Hallo,
I am writing an application that has the option to startup with new data (The well known 'new') button; by executing 'new' I want some or all Objects being repainted and reinitialized like they when starting the application.
For example I have an tabControlView with several tabs. I want them all completely clear. As well as a listview in a tab.
I already tried some things but with no success. I tried tabControlViews.Invalidate(true); but nothing seemed to happen.

Do you have any hints?

Regards,
Chris