﻿<?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?)  » RegistryRepositoryKey saving the wrong SF_FormHeight value</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 06:24:51 GMT</lastBuildDate><ttl>20</ttl><item><title>RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21643.aspx</link><description>Hi,&lt;P&gt;I have a main MDI form and I have setup the following properties:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;RegistryRepositoryKey = HKEY_CURRENT_USER\Software\Progytech\Card Tracking System\MainDialog&lt;/LI&gt;&lt;LI&gt;RememberFormLocation = True&lt;/LI&gt;&lt;LI&gt;RememberFormMaximizedState = True&lt;/LI&gt;&lt;LI&gt;RememberFormSize = True&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Now when I open this form, it will update the registry as follow:&lt;/P&gt;&lt;P&gt;&lt;IMG height=224 src="http://forum.strataframe.net/Uploads/Images/c5ad4f8d-b623-4ece-a5ce-7fa2.png" width=480&gt;&lt;/P&gt;&lt;P&gt;Without doing any change to the Main Form size, I close the application and run it again, then new values are being saved in the registry, causing the form to keep showing up with the wrong height value.&lt;/P&gt;&lt;P&gt;&lt;IMG height=186 src="http://forum.strataframe.net/Uploads/Images/fce4e6e5-b498-4c30-b21b-930a.png" width=479&gt;&lt;/P&gt;&lt;P&gt;Notice that the SF_FormHeight and SF_FormY values are the one that changed without me resizing the form.&amp;nbsp; Now this form has an UltraToolbarsManager acting as a RibbonBar and an UltraStatusBar which I believe may be causing this effect, since I do have other projects using the same Main Form without the infragistics&amp;nbsp;controls and does not show this behavior.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I have the following code in the OnLoad method of the form:&lt;/P&gt;&lt;P&gt;[codesnippet][code]&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; OnLoad(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.EventArgs)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.OnLoad(e)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; applicationTitle &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Card Tracking System"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Format(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"{0} ({1})"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, applicationTitle, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;My&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Application.Info.Version.ToString)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Set the MDI backcolor to white&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;_MDIClient.BackColor = System.Drawing.Color.White&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Add the MDI&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Controls.Add(_MDIClient)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Create a handle to the CurrentUserChanged event to update the user information shown in main form.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Security.SecurityBasics.CurrentUserChanged, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AddressOf&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; UpdateCurrentUserInfo&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.UpdateCurrentUserInfo()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Set the Connection label on the status bar&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.UltraStatusBar1.Panels(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"sbConnectedTo"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;).Text = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Connected to: "&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; GetApplicationActiveConnectionStringTitle(ConnectionManager.ApplicationKey, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;P&gt;[/code][/codesnippet]&lt;/P&gt;&lt;P&gt;This Main Form was created based on the Main Form in the StrataFlix sample, you can see the MainFormSample.png file attached for a reference.&lt;P&gt;Is there any recommendation to solve this situation?</description><pubDate>Fri, 30 Jan 2009 13:55:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21743.aspx</link><description>:hehe:[quote][b]Dustin Taylor (01/30/2009)[/b][hr]Do you have any machines at your office on an older version of infragistics? Perhaps it is something in the newer version that is causing the disconnect?[/quote]&lt;P&gt;Hi Dustin, &lt;/P&gt;&lt;P&gt;Thanks for trying it out, unfortunately I do not have v7.3, but calling &lt;FONT color=#0000ff&gt;Me&lt;/FONT&gt;&lt;FONT size=2&gt;.RestoreSizeAndLocation() after &lt;FONT color=#0000ff&gt;MyBase&lt;/FONT&gt;&lt;FONT size=2&gt;.OnLoad(e) in the MainForm does the trick and I believe that is a proof of an instantiation timing issue, don't know if something could be done in the SF source to prevent this issue with this control or any other in this case.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Could it be possible for you to install the new infragistics trial for further testing? Now that I have a custom fix there is no rush on this on your part</description><pubDate>Fri, 30 Jan 2009 13:55:45 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21741.aspx</link><description>FYI, I went ahead and stripped out your references and replaced them with v7.3 infragistics (what I have on my dev machine), and the problem does not occur on my machine. Do you have any machines at your office on an older version of infragistics? Perhaps it is something in the newer version that is causing the disconnect?</description><pubDate>Fri, 30 Jan 2009 13:31:16 GMT</pubDate><dc:creator>Dustin Taylor</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21723.aspx</link><description>Hi Trent, &lt;P&gt;Thanks for the information.&amp;nbsp; I found the problem in the &lt;FONT size=2&gt;RestoreSizeAndLocation() method in this line of code:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;[codesnippet][code]&lt;FONT size=2&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;'-- Set the size&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.RememberFormSize &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Then&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #dddd33"&gt;Me&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;STRONG&gt;&lt;FONT style="BACKGROUND-COLOR: #dddd33"&gt;.Height = lnHeight&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Width = lnWidth&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;If&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/code][/codesnippet]&lt;/P&gt;&lt;P&gt;In this assignment Me.Height will not assume or accept the value in lnHeight, I would guess it has to do with the way the form is instantiated with the UltraToolbarsManager.&amp;nbsp; Here is what I did:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Override the RestoreSizeAndLocation() in my main form, of course I had to add the private Constant needed.&lt;/LI&gt;&lt;LI&gt;In my Onload, I added a call to Me.RestoreSizeAndLocation() which actually will be run twice and that seem to temporarily fix the problem.&amp;nbsp; Here is the code:&lt;/LI&gt;&lt;LI&gt;[codesnippet][code]&lt;FONT size=2&gt; &lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Protected&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Overrides&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; OnLoad(&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;ByVal&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; e &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; System.EventArgs)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MyBase&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.OnLoad(e)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; applicationTitle &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Card Tracking System"&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Text = &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Format(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"{0} ({1})"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;, applicationTitle, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;My&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Application.Info.Version.ToString)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Set the MDI backcolor to white&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;_MDIClient.BackColor = System.Drawing.Color.White&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Add the MDI&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.Controls.Add(_MDIClient)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Create a handle to the CurrentUserChanged event to update the user information shown in main form.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AddHandler&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; MicroFour.StrataFrame.Security.SecurityBasics.CurrentUserChanged, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;AddressOf&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; UpdateCurrentUserInfo&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.UpdateCurrentUserInfo()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- Set the Connection label on the status bar&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.UltraStatusBar1.Panels(&lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"sbConnectedTo"&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;).Text = &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;"Connected to: "&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &amp;amp; GetApplicationActiveConnectionStringTitle(ConnectionManager.ApplicationKey, &lt;/FONT&gt;&lt;FONT color=#a31515 size=2&gt;&lt;FONT color=#a31515 size=2&gt;""&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;'-- This code is used temporarily until a final solution is available for the main form honoring the&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#008000 size=2&gt;&lt;FONT color=#0000ff&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/FONT&gt;' registry saved size and location.&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt;.RestoreSizeAndLocation()&lt;/P&gt;&lt;P&gt;&lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size=2&gt; &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;&lt;FONT color=#0000ff size=2&gt;Sub&lt;/P&gt;&lt;/FONT&gt;&lt;/FONT&gt;[/code][/codesnippet]&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Probably you can suggest a better temporary approach that does not require to overwrite the RestoreSizeAndLocation().&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Thu, 29 Jan 2009 13:24:48 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21720.aspx</link><description>It is the OnFormClosing method within the BaseForm class in the Business assembly.&amp;nbsp; There is a method called SaveSizeAndLocation that gets called.</description><pubDate>Thu, 29 Jan 2009 11:23:06 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21717.aspx</link><description>[quote][b]Trent L. Taylor (01/29/2009)[/b][hr]But we do not have the Infragistics version that you are using here, so we have not yet even gotten this going.[/quote]&lt;P&gt;I fogot to mention the version I have is NetAdvantage for .Net 8.1.20081.1000.&amp;nbsp; I was under the impression that if you have a newer version it would be a matter of just changing the references.&lt;/P&gt;&lt;P&gt;[quote][b]Trent L. Taylor (01/29/2009)[/b][hr]Is there anyway that you can reproduce this without Infragistics?[/quote]&lt;/P&gt;&lt;P&gt;So far with other projects in which I am not using the UltraToolbarsManager I have not seen that side effect, so it must definately be related to that object being placed in the form which may be causing the code that saves the form size when closing to get the wrong values.&lt;/P&gt;&lt;P&gt;Maybe you could tell me which and where&amp;nbsp;is the code responsible for saving the fomr's position on the registry and I could probably overwrite that method in the main form in order to debug it and find a fix.</description><pubDate>Thu, 29 Jan 2009 11:00:39 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21714.aspx</link><description>We haven't forgotten about this and you were supposed to have been informed on this.&amp;nbsp; But we do not have the Infragistics version that you are using here, so we have not yet even gotten this going.&amp;nbsp; From a cursory glance, though, it is going to most likely be injected code that is causing the issue.&amp;nbsp; This is not reproducable in any other format and we have verified that all of the SF plumbing in this regard is working properly.&amp;nbsp; Is there anyway that you can reproduce this without Infragistics?</description><pubDate>Thu, 29 Jan 2009 10:06:25 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21713.aspx</link><description>A friendly reminder, just in case you guys have missed the sample posted in the previous thread.&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Thu, 29 Jan 2009 09:01:21 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21666.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Attached please find a quick and dirty sample of my based ribbon project which uses the Infragistics UltraToolbarsManager as a Ribbon UI.&lt;/P&gt;&lt;P&gt;Many of my code has been either commented out or added an "Exit Sub" statement to make the sample functional to show the basic problem of the main form being resized each time the application is run until it will shrink completely.&lt;/P&gt;&lt;P&gt;I added 2 sample forms "First and Second Forms" in the ribbon first 2 buttons, so you can test.&lt;/P&gt;&lt;P&gt;After fixing any missing reference, all you need to do to test is just run the application and exit several times, you will noticed that the main form RegistryRepositoryKey "HKEY_CURRENT_USER\Software\Progytech\Ribbon_Sample\MainDialog" will change all the time the application is closed, and also will see the effect of the main form getting smaller every time it is ran.</description><pubDate>Mon, 26 Jan 2009 09:44:40 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21659.aspx</link><description>Thanks! :)</description><pubDate>Sun, 25 Jan 2009 18:35:58 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21656.aspx</link><description>Hi Trent,&lt;/P&gt;&lt;P&gt;Sure, I understand, I will create a sample.</description><pubDate>Sun, 25 Jan 2009 18:32:57 GMT</pubDate><dc:creator>Edhy Rijo</dc:creator></item><item><title>RE: RegistryRepositoryKey saving the wrong SF_FormHeight value</title><link>http://forum.strataframe.net/FindPost21653.aspx</link><description>Edhy, this is going to be next to impossible to diagnose like this.&amp;nbsp; I will need a sample reproducing the behavior.&amp;nbsp; The reason is that code that you have within your dialog can influence this and alter the instantiation order or pre/post restoration values.&amp;nbsp; This is a very common feature that is used so I will definitely need to have a sample so that I can trace this to see where the issue resides.</description><pubDate>Sun, 25 Jan 2009 18:20:11 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>