Visual Inheritance


Author
Message
Thomas Holste
Thomas Holste
Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)Advanced StrataFrame User (536 reputation)
Group: StrataFrame Users
Posts: 144, Visits: 618
Hi There,

for a larger project I have set up some base-classes but I am coming to the point

where I don't know what to do.

I have build a base form class (mystdFRM) which is a strataframeform with some additional properties and a themed panel.

From this class I build a new class (mysingledatafrm) which has some methods for datahandling and a themed toolstrip with three buttons added (Save,Undo,Exit).

I use this form for simple data-entry like parameter setup or editing data based on a single BO.

So far everything works fine, but what I can't accomplish is to change controls derived from my base-class. For example, if I would like to add a fourth button to a form derived from mysingledatafrm (the one with the toolstrip on it), I can not modify the control, something I could do in VFP.

I found some articles explaining that I should change the modifiers of these controls to "protected friend" but this does not help.

Can anybody tell me, how or if this can be done (VB.NET/VS2010?

Thanks in advance

Thomas
Reply
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Thomas,

I have not tried with the ToolStrip since I don't use the maintenance ToolStrip, I basically follow the logic used in the StrataFlix sample using ActionLinkItems instead since I do have more control over those.

I do remember that once, when I was learning to use SF, I tried to add buttons to the SF toolstrip but couldn't do it and what I did was to hide the buttons I didn't use and add another toolstrip with the buttons I wanted, after that the StrataFlix sample came out and I choose to follow that logic in my designs.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search