Component: design time support
I have created a component (say CustomComponent). Now, while building any application (say MyApp), I import this CustomComponent by dragging it from the toolbox. As soon as CustomComponent is placed in my MyApp, I want to add a statement say:
System.Resources.ResourceManager resource = new System.Resources.ResourceManager();
into the InitializeComponent() method of MyApp. How do I go about it? I have a blurred idea of using Designer class for it. Does anyone have a precise solution for the same?