General Fear
Member
- Joined
- Dec 22, 2012
- Messages
- 12
- Programming Experience
- 10+
I am using VB 2010.
Recently I have had good success with custom controls. I am able to create a parent control like a command button that contains all preferences to our application. I use my own custom controls instead of what ships with Microsoft. Because I am using custom controls, I can make one change, in the parent and all of the children of that use that class benefit from the change. For example, if I change the background color, all of the child command buttons are instantly changed with the new background color.
Now I want to do the same with forms. I have tried "visual inheritance" and it is not working out. Basically, I want to create a parent form that contains all preferences and code required by the application. Then whenever I create a new form I use the parent form template. When I make a change to the parent class I want that change to filter down to all of it's children forms.
So, just like a custom control, how do I create a WinForm parent class with VB 2010?
Recently I have had good success with custom controls. I am able to create a parent control like a command button that contains all preferences to our application. I use my own custom controls instead of what ships with Microsoft. Because I am using custom controls, I can make one change, in the parent and all of the children of that use that class benefit from the change. For example, if I change the background color, all of the child command buttons are instantly changed with the new background color.
Now I want to do the same with forms. I have tried "visual inheritance" and it is not working out. Basically, I want to create a parent form that contains all preferences and code required by the application. Then whenever I create a new form I use the parent form template. When I make a change to the parent class I want that change to filter down to all of it's children forms.
So, just like a custom control, how do I create a WinForm parent class with VB 2010?