﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » Navigation with the MaintenanceFormToolStrip Control</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Sat, 18 Jul 2026 00:44:23 GMT</lastBuildDate><ttl>20</ttl><item><title>Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13453.aspx</link><description>I removed the default control on the DevEx maintenance form and replaced it with the MaintenanceFormToolStrip control.&amp;nbsp; I have done this before without any issues.&amp;nbsp; Today, however, I have issues.&amp;nbsp; (Let's not dwell on that statement, ok?&amp;nbsp; :hehe: )&lt;/P&gt;&lt;P&gt;My problem is that the window opens up without the navigation buttons lit up.&amp;nbsp; I can edit/add or delete, but not navigate.&amp;nbsp; If I do click edit, then undo, I have navigation back.&amp;nbsp; If I force the BO to navigate to the end of the collection (MoveLast) via code (FormLoad event), then the navigation buttons show up, but the FIRST record is showing on the screen...not the last...and the details in a list view reflect the LAST record...not the first.&amp;nbsp; This is quite odd.&amp;nbsp; If I then navigate away from the record, everything snaps back into shape and works as expected after that.&amp;nbsp; The workaround is quite simple and acceptable for little 'ole me, but not so acceptable to those nutty QA guys.&amp;nbsp; And, my boss just may mention something about it, too.&lt;/P&gt;&lt;P&gt;Is there a particlar property that I need to look at; or, perhaps I may have done something in my code to make this behavior occur?&amp;nbsp; Any direction on this would be much appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Sun, 27 Jan 2008 11:34:21 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13755.aspx</link><description>Glad you got it going.&amp;nbsp; :)</description><pubDate>Sun, 27 Jan 2008 11:34:21 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13706.aspx</link><description>Well, it might not be an answer, but it's a reply at least ;)</description><pubDate>Thu, 24 Jan 2008 09:07:24 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13705.aspx</link><description>Check the answer on the cross post :)</description><pubDate>Thu, 24 Jan 2008 09:07:03 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13698.aspx</link><description>The first thing that the EditValueChanged event needs to check is the editing state of the BO.&amp;nbsp; If adding or editing, then the code can run; otherwise, it should skip it.&amp;nbsp; The editing state will be changed by the following line of code:&lt;/P&gt;&lt;FONT color=#0000ff size=2&gt;&lt;P&gt;this&lt;/FONT&gt;&lt;FONT color=#000000 size=2&gt;.partsBO1.sketch = (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;FONT color=#000000&gt;[])SketchPictureEdit.EditValue;&lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;That is why my navigation disappeared.&amp;nbsp; And, also explains the confirmation popup when closing the &amp;#119;indow.&lt;/P&gt;&lt;P&gt;Whew!&amp;nbsp; Glad that's over.&lt;BR&gt;Bill&lt;/P&gt;&lt;P&gt;(note: cross-posted on purpose--http://forum.strataframe.net/Topic13645-7-1.aspx)</description><pubDate>Wed, 23 Jan 2008 16:24:04 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13696.aspx</link><description>Wow!&amp;nbsp; The code that I added to fix one problem (&lt;A href="http://forum.strataframe.net/Topic13645-7-1.aspx"&gt;http://forum.strataframe.net/Topic13645-7-1.aspx&lt;/A&gt;) has created this one.&amp;nbsp; That's no fun.&amp;nbsp; Why would this code...&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;private&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;void&lt;/FONT&gt;&lt;FONT size=2&gt; SketchPictureEdit_EditValueChanged(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;object&lt;/FONT&gt;&lt;FONT size=2&gt; sender, &lt;/FONT&gt;&lt;FONT color=#2b91af size=2&gt;EventArgs&lt;/FONT&gt;&lt;FONT size=2&gt; e)&lt;BR&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;if&lt;/FONT&gt;&lt;FONT size=2&gt; (SketchPictureEdit.EditValue == &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;[] { })&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.partsBO1.sketch = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;new&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;[] { };&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SketchPictureEdit.EditValue = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;string&lt;/FONT&gt;&lt;FONT size=2&gt;.Empty;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;else&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT size=2&gt;{&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;this&lt;/FONT&gt;&lt;FONT size=2&gt;.partsBO1.sketch = (&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;byte&lt;/FONT&gt;&lt;FONT size=2&gt;[])SketchPictureEdit.EditValue;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR&gt;}&lt;/P&gt;&lt;/FONT&gt;&lt;P&gt;...prevent the navigation from working.&amp;nbsp; I don't see the connection.</description><pubDate>Wed, 23 Jan 2008 16:04:19 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13695.aspx</link><description>Hey Ivan,&lt;/P&gt;&lt;P&gt;Nope.&amp;nbsp; No date fields on this form.&lt;/P&gt;&lt;P&gt;The issue reported here (&lt;A href="http://forum.strataframe.net/Topic13178-10-1.aspx"&gt;http://forum.strataframe.net/Topic13178-10-1.aspx&lt;/A&gt;) pops up every time I make a change to this form, too.&amp;nbsp; Quite annoying.&lt;/P&gt;&lt;P&gt;Oh, I did revert my changes on this form to last night (via VisualSVN...glad I added this all in to source code control yesterday).&amp;nbsp; It works.&amp;nbsp; Now, I am adding all my changes back in--one at a time--in order to see which one may have broken the form.&amp;nbsp; Tedious, but I need to find an answer so that I do not duplicate my problem elsewhere.&lt;/P&gt;&lt;P&gt;Bill</description><pubDate>Wed, 23 Jan 2008 15:43:52 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13694.aspx</link><description>Hey Bill.&lt;/P&gt;&lt;P&gt;Just guessing. Have you got a DateTimePicker dropped on your form trying to deal with a NULL date?</description><pubDate>Wed, 23 Jan 2008 15:15:18 GMT</pubDate><dc:creator>Ivan George Borges</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13693.aspx</link><description>I have deleted the maintenance tool strip and recreated it.&amp;nbsp; No effect.</description><pubDate>Wed, 23 Jan 2008 15:14:52 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13692.aspx</link><description>[quote][b]Ben Chase (01/15/2008)[/b][hr][quote]All hail the Tacquito![/quote]My only guess is that it had something to do with the initialization priority of the objects on the form... the business object is supposed to raise a Navigated event when the form launches to set the initial state of all of those objects.&amp;nbsp; Looks like that wasn't happening, or the handler wasn't attached when it did happen.&amp;nbsp; I dunno; at least it's working for you.[/quote]&lt;/P&gt;&lt;P&gt;I am having the same problem, again.&amp;nbsp; This has got me stumped.&amp;nbsp; I will open the window and the first record is shown.&amp;nbsp; No navigation is availble on the MaintenanceFormToolStrip.&amp;nbsp; There are quite a few records.&amp;nbsp; If I browse and select the first record of 100s, I'll get that record, but no navigation still.&amp;nbsp; It is as if the toolstrip does not know about the primary BO.&lt;/P&gt;&lt;P&gt;The initialization priority does not seem to be the key here.&amp;nbsp; I have tried playing with a few options to try to get this to work.&amp;nbsp; Nothing has been successful.&amp;nbsp; My last option will be to delete the toolstrip and start over.&lt;/P&gt;&lt;P&gt;One other oddity...the form opens in an idle editing state.&amp;nbsp; Nothing is lit up to edit; however, if I choose to close the window the default&amp;nbsp;popup shows up asking if I want to save changes?&amp;nbsp; There have been no changes, nor has the editing state been altered...it is still idle.&amp;nbsp; I am thinking that the primary business object is no longer primary, even though it is showing up that way.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Odd, huh?&lt;BR&gt;Bill</description><pubDate>Wed, 23 Jan 2008 15:00:53 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13469.aspx</link><description>Init priority...ok, I'll go with that.&amp;nbsp; Sounds like the most likely cause.&amp;nbsp; Thanks, Ben!</description><pubDate>Tue, 15 Jan 2008 13:43:37 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13466.aspx</link><description>[quote]All hail the Tacquito![/quote]&lt;/P&gt;&lt;P&gt;I would hail anything that fixed a problem :)&lt;/P&gt;&lt;P&gt;My only guess is that it had something to do with the initialization priority of the objects on the form... the business object is supposed to raise a Navigated event when the form launches to set the initial state of all of those objects.&amp;nbsp; Looks like that wasn't happening, or the handler wasn't attached when it did happen.&amp;nbsp; I dunno; at least it's working for you.</description><pubDate>Tue, 15 Jan 2008 12:57:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Navigation with the MaintenanceFormToolStrip Control</title><link>http://forum.strataframe.net/FindPost13461.aspx</link><description>Well, well, well...&lt;/P&gt;&lt;P&gt;I removed all of the forced navigation, hit F5, opened the form, and it works.&amp;nbsp; :blink:&lt;/P&gt;&lt;P&gt;Maybe it is because I just had a Tacquito from 7-Eleven!?!&amp;nbsp; All hail the Tacquito!&lt;/P&gt;&lt;P&gt;Weird.&amp;nbsp; Just plain weird.&amp;nbsp; If anyone has an explanation, I would be happy to field it.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR&gt;Bill</description><pubDate>Tue, 15 Jan 2008 11:31:06 GMT</pubDate><dc:creator>Bill Cunnien</dc:creator></item></channel></rss>