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

مشاهدة النسخة كاملة : how to customize the Form class?



C# Programming
01-28-2011, 09:31 PM
Hi,
I would like to implemnet a process that will initial on every form on my application on form InitializeComponent...

My thought is to some how customize the Form class and inherite the new class as my Form
i.e. "public class Form1 : MyCustomizedForm"

But I don't wont to recreate to whole Form class, I only whant to implement a process on it's loading after all controls were added. But I need it to take place in every form on my application.

Any ideas?

tnx