How do i enherit forms?
-
I am trying to make a base form that has the controls that i want every other form in my program to have...i thought maybe i could just build that form and then have my other forms inherit from it so they would have those same controls and then i could add the extra stuff that the indevidual form needed...but it wont let me open my forms that inherit from the base form in the designer......Im not sure what if anything i can do about this, but if you have any ideas pleas let me know. Thank you in advance ;) Pablo
-
I am trying to make a base form that has the controls that i want every other form in my program to have...i thought maybe i could just build that form and then have my other forms inherit from it so they would have those same controls and then i could add the extra stuff that the indevidual form needed...but it wont let me open my forms that inherit from the base form in the designer......Im not sure what if anything i can do about this, but if you have any ideas pleas let me know. Thank you in advance ;) Pablo
In code window Replace
Inherits System.Windows.Forms.Form
WithInherits frmSetupTemplate 'frmSetupTemplate Name of ur Form which u want as base
Regards, Javed -
I am trying to make a base form that has the controls that i want every other form in my program to have...i thought maybe i could just build that form and then have my other forms inherit from it so they would have those same controls and then i could add the extra stuff that the indevidual form needed...but it wont let me open my forms that inherit from the base form in the designer......Im not sure what if anything i can do about this, but if you have any ideas pleas let me know. Thank you in advance ;) Pablo
-
In code window Replace
Inherits System.Windows.Forms.Form
WithInherits frmSetupTemplate 'frmSetupTemplate Name of ur Form which u want as base
Regards, JavedM Javed Khan wrote:
Inherits System.Windows.Forms.Form With Inherits frmSetupTemplate 'frmSetupTemplate Name of ur Form which u want as base
Right thats what i was doing...but it wont let me edit the inheriting form in the designer when i do that Pablo
-
No, should I? Pablo
-
No, should I? Pablo
-
M Javed Khan wrote:
Inherits System.Windows.Forms.Form With Inherits frmSetupTemplate 'frmSetupTemplate Name of ur Form which u want as base
Right thats what i was doing...but it wont let me edit the inheriting form in the designer when i do that Pablo
-
M Javed Khan wrote:
Inherits System.Windows.Forms.Form With Inherits frmSetupTemplate 'frmSetupTemplate Name of ur Form which u want as base
Right thats what i was doing...but it wont let me edit the inheriting form in the designer when i do that Pablo
hmmm the control which you want to edit in inherited form make its Modifier Property Value = "Public" then you will be abe to edit it. Regards, Javed :)
-
When i inherit a base form and then try to open the new form in the editor i get a balnk screen and in the build errors section it says that no designable items where found Pablo
-
Right...this is a strange problem, im starting to think maybe something is wrong with my install of Visual Studio...but everything else seems to be working...maybe i should reinstall it anyways just to be sure its not the probelm. Pablo