Home > Net >  Questions about FlowLayoutPanel minimize reduction (13 years, haven't solve)
Questions about FlowLayoutPanel minimize reduction (13 years, haven't solve)

Time:10-02

The building Lord: http://bbs.csdn.net/topics/390335837
The test case: http://download.csdn.net/detail/jc_strive/9771990
Everybody is good, in winform, I use FlowLayoutPanel, dynamically add some controls, such as adding 200 button, after the test found that if you don't set the dock properties, without any problems, but once you set the dock property, whether the fill or other such as top, this time there will be a problem:
Minimize the form after reduction, FlowLayoutPanel puzzling appear a large gap, a scroll bar will appear, maximize without this problem, only restore window appears after to minimize this problem
Minimize up and restore the scroll bar appears below a large gap

CodePudding user response:

This is flowlayoutpanel control bugs, can through the window to minimize and reduction, attribute to set the scroll bar to solve
Private void frmPanelControl_SizeChanged (object sender, EventArgs e)
{
//solve flowlayoutPanel controls in minimizing the reduction, a vertical scroll bar Bug
If (this. WindowState==FormWindowState. Minimized)
{
LayoutTrack. AutoScroll=false;
LayoutButton. AutoScroll=false;
}
The else
{
LayoutTrack. AutoScroll=true;
LayoutButton. AutoScroll=true;
}
}

CodePudding user response:

1st floor method is feasible, the building still not quick to 1/f, too admire on the first floor, can I ask your ideas or understanding?

CodePudding user response:

https://download.csdn.net/download/u011988271/11825910

CodePudding user response:

This reply is two years,,, the original poster don't play the CSDN
  •  Tags:  
  • C#
  • Related