Hello
I have a form called FormMain - this form has controls on it (some are windows controls and other are infragistics controls)
I changed the private voidInitializeComponent() of the FormMain to public void InitializeComponent()
in addition, i changed the decleration of the controls on the form from private to public
Naturally i have done all this so i could inherit from FormMain
(i know that i should have changed these to protected rather then public but when i change it to protected it doesnt work , found there's a bug on this)
On any case, in my formMain i adjusted the size of the controls in the designer the way i wanted them
Now i created another form called FormMainTester which inherits from formMain, the problem is that when i inherit from FormMain, in the InitializeComponent function n FormMainTester(the derived class) i see that the size of the controls on the form are changed
for example, the InitializeComponent in the FormMainTester will contain the following code:
//
// panelTitle
//
this.panelTitle.Size = new System.Drawing.Size(116, 22);
//
// textStatus
//
this.textStatus.Location = new System.Drawing.Point(0, -226);
this.textStatus.Size = new System.Drawing.Size(116, 99);
//
// panelButtons
//
this.panelButtons.Location = new System.Drawing.Point(0, -294);
this.panelButtons.Size = new System.Drawing.Size(116, 69);
as a result, i dont see the FormMainTester in the size i expected to see (just like the FormMain)
Also, i cant change or delete these size changes in the InitializeComponent of the FormMainTester