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



The Moving MaintenanceFormToolStrip-problemExpand / Collapse
Author
Message
Posted 04/08/2006 9:38:51 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,

I have a form that has been inherited from an other form that has four elements:

MenuStrip, GradientFormHeader, MaintenanceFormToolStrip and a ThemedGroupBox.

When nothing is added to the newly created form it displays ok. Adding anythin(?) makes the MaintenanceFormToolStrip to move just below the top menu (see: attached PDF).

What might be causing this - unwanted - behaviour?

TIA,

Kari

  Post Attachments 
MaintenanceMenuMove.pdf (35 views, 42.02 KB)

Post #791
Posted 04/08/2006 12:55:27 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:51:57 AM
Posts: 4,561, Visits: 4,544
.NET is causing the problem.  The best way to resolve this issue is to use a ToolStrip Container.  This will allow you to place the toolstrip in a section by itself.  This control can just be dropped on the form and can be found under the Menus and Toolbars toolbox tab.  Simply drop this control on the form and place the toolstrip in one of the "rafting" areas and then place the remainder of your controls in the content section.  Play with this some and if you don't have any luck let me know.
Post #794
Posted 04/08/2006 1:21:25 PM
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
Trent

PMFJI.

Kari's form is visually inheriting everything. I recently put together some WinForms classes and in one such class, I placed a toolstrip container in the parent form level of my class.

I don't know whether you have actually done this but for me (in the subclassed instance of the form), VS really messed up placement of the toolbar relative to its original location in the toolstrip container itself. So, in any subclasses, the toolstrip did not appear to sit in its allocated space at the top of the container and, the container, for some reason, didn't quite Dock.Fill the subclassed form either.

There may be a perfectly good explanation and workaround for this but, I found that my answer was to create/use all of the parts that were specialised classes eg., Gradient Form Header, Toolstrip, Statusbar etc., that needed to be a part of the new form and then, "assemble" them at design time using a template. This stopped all of the visual inheritance problems and the toolstrip container behaved exactly as I expected it to.

Just my .02c

Best

-=Gary

Post #796
« 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:06am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.109. 9 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.