problem with inherited Windows Form

B

Brandon Owensby

I wrote a screen that has a grid on it and a few controls. Later I needed
the same screen but with a few more controls...but I still needed the old
configuration. Since this was the case and since there was alot of code
driving the grid I created another windows form that inherited from my
original one. This worked great at the time. Today I went in to the
original windows form and made a change and when I tested it out I noticed
that if I open the inherited form that the grid wasn't right. In the
inherited form I had made the grid a slight bit shorter because I need some
room for the new controls. This size change is being ignored now. If I
look at the window in the designer its showing the Grid as being locked.
Its the only control that is locked....and it was set to protected not
private on the original screen. This is the second inherited window that I
have had this happen. Does anyone have any suggestions?

Thanks,
Brandon
 
K

kirk

When you inherit from a form that is in the same assembly, you will need to
do a build after making changes to the base form. This is due to the fact
that the VS form designer does not show what is happening in the source for
the base form, but from the compiled assembly.
Try closing the inheriting form designer, build the project, then re-open
the designer. It should show the changes.

Kirk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top