StrataFrame Forum

Form-Inheritance again

http://forum.strataframe.net/Topic28111.aspx

By Thomas Holste - 8/25/2010

Hi there,

after reworking my forms the "inheritance-chain" is working but another problem has come up.

I have

1) A base form which controls some properties and methods. This one is inherited from the strataframe standard form (But it would make no differende it would inherit from a vb-standard form).

2) From this form I inherit (New Item->Inherited form) a form which gets a groupbox and a toolstrip with three buttons (Save,Undo,Exit) and code handling the click-events of the buttons. Let's call it "MySingleDataFRM".

Now I create a new form inherited from "MySingleDataFRM" ("New Item->Inherited Form)and want to modify the toolstrip (I want to change his tab-index for example because I want the first textbox to receive focus when I open the form, but I also think of adding buttons to the toolstrip in some cases).

But this does not work. In CODE-magazine I've read an article which explains to set the modifier of the toolstrip from friend to protected, but this odes not work too.

So my question is how this can be done? I know that I could export "MySingleDataFRM as a template and create new forms from this template but then any changes in "MySingleDataFRM" would not be reflected in already created forms, which happens if I create new forms via "New Item-Inherited Form".

Thanks a lot for your help

Thomas

By Ivan George Borges - 8/26/2010

Hi Thomas.

I think this post can help you:

http://forum.strataframe.net/FindPost11487.aspx

By Thomas Holste - 8/26/2010

Hi Ivan,

thank you for your help. That post gives me some new ideas to try.

Best regards

Thomas

By Ivan George Borges - 8/26/2010

You are welcome, Thomas. Wink