C
Ching-Lung
Hi,
I have a windows form with a button and 2 panels. All
Panel.Dock = DockStyle.Left
-------------
| | |
| 1 | 2 |
| | |
-------------
When I click on the button, I want panel 1 to shrink and
panel 2 to grow in width:
int i = p1.Width;
p1.Width = p2.Width;
p2.Width = i;
this.Refresh();
My question is... how to make the shrinking and growing
animation look smooth and not flickering on the monitor?
I tried to use timer, but it's completely unacceptable
for user's experience.
Please help!
Thanks,
Ching-Lung
I have a windows form with a button and 2 panels. All
Panel.Dock = DockStyle.Left
-------------
| | |
| 1 | 2 |
| | |
-------------
When I click on the button, I want panel 1 to shrink and
panel 2 to grow in width:
int i = p1.Width;
p1.Width = p2.Width;
p2.Width = i;
this.Refresh();
My question is... how to make the shrinking and growing
animation look smooth and not flickering on the monitor?
I tried to use timer, but it's completely unacceptable
for user's experience.
Please help!
Thanks,
Ching-Lung