Tạo winform C# có thể cuốn lên cuốn xuống?

Mình muốn tạo một form có thể cuộn lên cuộn xuống như thế này. Có bạn nào giúp mình với.

1 Like

Tạo FlowLayoutPanel:

 flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
 flowLayoutPanel1.WrapContents = false;
 flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill;
 flowLayoutPanel1.AutoScroll = true;

Bên WindowsForm dùng 1 panel có thuộc tính AutoScroll = true. Bên WPF dùng một ScrollViewer.

1 Like
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?