Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2114
The simplest way to save toolbars positions?
posted

I need a simplest way to save the toolbars positions on  a form.

I have an UltraToolbarsManager, but only SaveAsXml/Binary with saveCustomizations = False works. I tested, but apparently this does not remember the toolbars positions when i reopen the form.

If I set saveCustomizations = True, then a System.ApplicationException was unhandled exceptions appears, indicating some serialization problems, that appears:

System.ApplicationException was unhandled
  Message=Error encountered while serializing data into stream.
  Source=Infragistics2.Win.UltraWinToolbars.v6.3
  StackTrace:
       at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveHelper(Stream stream, Boolean saveAsBinary, Boolean saveCustomizations)
       at Infragistics.Win.UltraWinToolbars.UltraToolbarsManager.SaveAsXml(String filename, Boolean saveCustomizations)
       at MyNamespace.MyForms.MyForm.SavePreference()
       at MyNamespace.MyForms.MyForm.MyForm_FormClosed(Object sender, FormClosedEventArgs e)

The same story is with BinarySerialization, or with UltraToolbarsManager.SaveSettings = Tru, or also SaveComponentSetting()...

What to do? How can I recuperate the toolbars coordinates to save them into the DB or file manually?

Parents Reply Children