Wenn man Controls einem Panel hinzufügt und vorher .SuspendLayout() macht muss man danach Invalidate und PerformLayout machen damit di Scrollbars angezeigt werden, sonst checkt es dass .net Framework nicht. Autoscroll im Panel muss auf true sein als Voraussetzung.
this.SuspendLayout();
panelDataGrid.SuspendLayout();
...
add Controls zu Panel..
....
this.ResumeLayout(true);
panelDataGrid.ResumeLayout(true);
panelDataGrid.Invalidate();
panelDataGrid.PerformLayout();
AutoScroll Panel mit eigenen Controls füllen
Latest Posts
Popular Posts
-
I am *very* keen on automating tests, so I was looking into unit testing a WCF service. If I say "unit test", I mean a fast ,...
-
It's easy I thought, just select the Property of the EntityType and set the Default Value in the Properties window to: DateTime.Now ...
-
Had some discussions about Lists and controls, like Listbox and Listview, and sometimes its difficult to distinguish those. System.Win...
No comments:
Post a Comment