Hello,
I have developed one user control using SplitContainer.
It is simply like two textboxes connected to each other with splitter in between them.
Whenever I increase width of the control
1. By dragging it with right edge, I want the splitter and the left textbox to remain fixed and
2. By dragging it with left edge, I want the splitter and the right textbox to remain fixed.
We can set only one of the panels as FixedPanel.
Initially i set splitContainer. FixedPanel = FixedPanel.None ;
then at runtime in event handlers for
1. panel1 : in splitContainer_Panel1_Resize
{
splitContainer. FixedPanel = FixedPanel.Pane l2;
}
2. panel2 : splitContainer_Panel2_Resize
{
splitContainer. FixedPanel = FixedPanel.Pane l1;
}
but whether I resize from right edge or left edge the event handler for Panel1 is always getting called first and then for second. And these both event handlers get called multiple times so this is not working.
How can this problem be solved?????
Regards
Abhishek
I have developed one user control using SplitContainer.
It is simply like two textboxes connected to each other with splitter in between them.
Whenever I increase width of the control
1. By dragging it with right edge, I want the splitter and the left textbox to remain fixed and
2. By dragging it with left edge, I want the splitter and the right textbox to remain fixed.
We can set only one of the panels as FixedPanel.
Initially i set splitContainer. FixedPanel = FixedPanel.None ;
then at runtime in event handlers for
1. panel1 : in splitContainer_Panel1_Resize
{
splitContainer. FixedPanel = FixedPanel.Pane l2;
}
2. panel2 : splitContainer_Panel2_Resize
{
splitContainer. FixedPanel = FixedPanel.Pane l1;
}
but whether I resize from right edge or left edge the event handler for Panel1 is always getting called first and then for second. And these both event handlers get called multiple times so this is not working.
How can this problem be solved?????
Regards
Abhishek
Comment