Removing Previously Inherited Elements

  • Thread starter Thread starter afrinspray
  • Start date Start date
A

afrinspray

Guest
Hello,

In my program, I have 8 different forms which all inherit a listbox and four buttons from the template form that I created. Now the program is working, I'd like to remove the four buttons, and just have the 8 forms inherit the listbox.

So here's what I did. I went to the designer in the "template" form (or parent form), and I deleted the four buttons, then I went to the templates code and double checked that those buttons weren't present, which they weren't.

So, now why do all the child forms still have those four buttons that they inherited previously? I want to delete those but I can't because they were previously inherited!

Thanks,
Mike
 
Ok,

Well I got this to work. All I had to do was run the program with the correct code and the designs fixed themselves.

But how could this happen? VB.NET is a huge production, errors like this shouldn't exist! It must be me- did I do something wrong?

Review, the question is: How can you remove elements from the inherited form and have those changes show up in the children immediately?

Thanks,
Mike
 
You don't need to actually run the app. Just rebuild the project and the changes will be reflected in the form that inherited the changed form.
 
Back
Top