StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Inheretinance - MaintenanceFormToolStripExpand / Collapse
Author
Message
Posted 04/08/2006 5:19:11 AM
StrataFrame Novice

StrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame NoviceStrataFrame Novice

Group: Forum Members
Last Login: 01/10/2008 9:33:30 AM
Posts: 65, Visits: 820
Hi,

would it be possible to inherit a SF Maintenance Form so that the MaintenanceFormToolStrip would be editable using VS in the new inherited form?

The items in the form can be modified using code, but it would be nice to be able to modify the MaintenanceFormToolStrip using VS.

What I tried was 

1) create a SF Maintenance Form
2) make the "Modifier"-property "Public"
3) make a new form by inheriting from the form created in step 1

The MaintenanceFormToolStrip doesn't allow it self to be accessed. With a standard button the buttons properties are accessible.

What goes wrong here or is there a better way to achieve this?

TIA,

Kari

Post #789
Posted 04/08/2006 7:40:47 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: Forum Members
Last Login: 07/21/2008 8:17:34 AM
Posts: 26, Visits: 236

Hi Kari

>would it be possible to inherit a SF Maintenance Form so that the MaintenanceFormToolStrip would be editable using VS in the new inherited form?

An SF Maintenance form is really just an SF Standard Form with the extra bits (like the MaintenanceFormToolStrip) added in the template processing. The MaintenanceFormToolStrip is just another class and as such, you can easily subclass it, as indeed I have done. So, just create a class that inherits from MaintenanceFormToolStrip and make whatever changes you want to it. Whilst you have a number of options, the easiest way is probably to just create an SF StandardForm (using "Add New Item"), drop a gradient form header on it and then drop your MaintenanceFormToolStrip subclass on the form.

For all intent and purposes, you now have an SF Maintenance form with a kariMaintenanceFormToolStrip on it

HTH

-=Gary

The items in the form can be modified using code, but it would be nice to be able to modify the MaintenanceFormToolStrip using VS.

What I tried was 

1) create a SF Maintenance Form
2) make the "Modifier"-property "Public"
3) make a new form by inheriting from the form created in step 1

The MaintenanceFormToolStrip doesn't allow it self to be accessed. With a standard button the buttons properties are accessible.

What goes wrong here or is there a better way to achieve this?

TIA,

Kari

Post #790
Posted 04/08/2006 12:52:14 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
Gary knows what he's talking about   Great answer!
Post #793
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 9:38am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.