General Fear
Member
- Joined
- Dec 22, 2012
- Messages
- 12
- Programming Experience
- 10+
I am using VB.Net 2010.
So here is my problem. I created a custom control. I wanted this to be my base class so that all textboxes are the same. If I want to say change the background color I can change it in one place.
I created my base class. It had a yellow background. Then I created a Win Form app. I bring into the app the DLL that is my base class. I see it in the toobox. I drag and drop. Perfect the text box is yellow. I close the Win Form app. Then I go back to my base class. I change the background to white. I open the Win Form app and it is still YELLOW? When I delete the textbox and put a new textbox from my base class, it is white.
I hoped that if I changed the parent textbox class all the children will automatically get the new changes I made. What am I doing wrong?
So here is my problem. I created a custom control. I wanted this to be my base class so that all textboxes are the same. If I want to say change the background color I can change it in one place.
I created my base class. It had a yellow background. Then I created a Win Form app. I bring into the app the DLL that is my base class. I see it in the toobox. I drag and drop. Perfect the text box is yellow. I close the Win Form app. Then I go back to my base class. I change the background to white. I open the Win Form app and it is still YELLOW? When I delete the textbox and put a new textbox from my base class, it is white.
I hoped that if I changed the parent textbox class all the children will automatically get the new changes I made. What am I doing wrong?