Re: System.Windows.Forms.SplitContainer Saving the splitter locati
- From: Alignex <Alignex@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Aug 2008 08:12:01 -0700
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/>
- Prev by Date: Drag & Drop, files to a form
- Next by Date: Re: Preventing typing in a DataGridView cell
- Previous by thread: Drag & Drop, files to a form
- Next by thread: Changing DataGridView default row height
- Index(es):
Relevant Pages
|
Loading