Re: System.Windows.Forms.SplitContainer Saving the splitter locati



Actually if you add settings to a dll the settings magically get stored with
the exe's settings and also get magically loaded back into the dll that is
referenced by the exe the next time it is run. (this wouldn't be ideal at
times when you want the control to display the same when referenced in
multiple EXEs on the same computer)

Also when binding the splitterposition property in vs2005 the splitter
behaves badly when changing other bound properties. I use the dll settings
but only save them for the splitter on close.

Corey

"Tom" wrote:

I prefer my controls to be in a library so I don't have an application
setting. I don't want to do this over and over again each time I use a
splitter.

Have a great holiday week-end
Tom

"Herfried K. Wagner [MVP]" wrote:

"Tom" <Tom@xxxxxxxxxxxxxxxxxxxxxxxxx> schrieb:
I would like to save the location of the splitter when an application
closes
and restore it when the application starts and cannot find the appropriate
time to get this done. I have been able to save the value but have not
found
a good event to get my saved value and set the splitter location.

You can do that without a single line of code.

Just add a "(PropertyBinding)" on the 'SplitterDistance' property in the
"(ApplicationSettings)" node of the splitcontainer control's properties
window.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


.



Relevant Pages

  • Splitter control width at start-up...
    ... want to control the width of the split as the application starts... ... Me.mySplitter = New Splitter ... 'The following two settings don't seem to impact the ... Prev by Date: ...
    (microsoft.public.dotnet.general)
  • Re: VB6 runtime is supported on Windows 7
    ... The settings window was fairly extensive ... DLL and the settings are organized into a UDT rather ...
    (microsoft.public.vb.general.discussion)
  • Re: CString question
    ... there is no /DUNICODE or /D_DUNICODE in all project settings. ... If they are in different modules, i.e. EXE and DLL or different DLLs, both ... would open a memory window on it. ... The character data is tacked on to the end, so for Win32, it would be ...
    (microsoft.public.vc.mfc)
  • Re: C# Create Global values in DLL?
    ... The settings need to be updated from time to time without the need of ... reposting or re-distributing the DLL to the people that are using it. ... make connections to the database to retrieve the settings information ... Ive have tried whenever possible to get the settings information at the ...
    (microsoft.public.dotnet.general)
  • Re: My.Settings Questions
    ... You do not need to pass a my.settings instance to the constructor ... as the settings are used from the calling assembly ... I need to make the DLL use the Application ... doing a ShowDialog or can I do this in the Loginform class Load event by ...
    (microsoft.public.dotnet.languages.vb)

Loading