Hi all,
I'm using VS 2008 and .net 3.5. Here we create Windows Form project
(or may use any other form for it), place SplitContainer with vertical
splitter on the form, than we place on the left panel new
SplitContainer with horizontal splitter. And for both splitters we set
up in the Properties -> Data -> Application Settings ->
SplitterDistance values. Compile and run program. Change position of
the vertical splitter and than click on the horizontal splitter -
vertical splitter comes back to its previous position. If we remove
any binding it's ok.
Generated code for propery bindings:
this.splitContainer1.DataBindings.Add(new System.Windows.Forms.Binding
("SplitterDistance",
global::WindowsFormsApplication.Properties.Settings.Default, "VS",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
this.splitContainer2.DataBindings.Add(new System.Windows.Forms.Binding
("SplitterDistance",
global::WindowsFormsApplication.Properties.Settings.Default, "HS",
true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
Can post all project files.
How fix it?
Thanks,
Andrey