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, Id like to remove the four buttons, and just have the 8 forms inherit the listbox.

So heres 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 werent present, which they werent.

So, now why do all the child forms still have those four buttons that they inherited previously? I want to delete those but I cant 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 shouldnt 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 dont 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