I have a big problem, when I doing a scrolling without 'Autoscrool' property enabled on a table layout, I get a noise box, seems that the layout continue scrolling (see attached image). I have tried update/refresh/invalidate... its container layouts, but I could not get success for my problem.
Other weird behavior that I have is, once have the noise box on the screen, and launched any dialog, the full layout is fixed.
Has anyone had a similar problem before?
see below the code that I'm using to scrool the table layout:
private void panelSelectorTrackBar_ValueChanged(object sender, EventArgs e)
{
galleryTableLayoutPanel.Top = panelSelectorTrackBar.Value;
dashboardPanelDetails.Hide();
}
On where galleryTableLayoutPanel is a TableLayout instance, panelSelectorTrackBar is an UltraTrackBar instance.
假设您已设置UltraTrackBar的值,以便它们与TableLayoutPanel的可能的垂直滚动值匹配,那么最好设置VerticalScroll的Value,而不要在窗体上移动控件的位置:
this.tableLayoutPanel1.VerticalScroll.Value = ultraTrackBar1.Value;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.