I have a panel with AutoScroll = false and AutoSize = false which contains a TableLayoutPanel docked to it as Dock = DockStyle.Fill with the following property values:
ColumnCount = 2,
Dock = DockStyle.Fill,
CellBorderStyle = TableLayoutPanelCellBorderStyle.Single,
Visible = true,
AutoScroll = true,
AutoSize = false,
Each column contains a panel with Dock = DockStyle.Fill, which contains a LinkLabel with the following property values:
AutoSize = true,
Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right,
UseCompatibleTextRendering = true,
Size = new Size(190, 19),
Font = new Font(this.Font.Name, 14.5f, FontStyle.Regular, GraphicsUnit.Pixel),
LinkBehavior = LinkBehavior.AlwaysUnderline,
Location = new Point(0, 0),
The text of the LinkLabel, which is dynamically set programmatically, can contain pretty long links which require horizontal scrolling by the TableLayoutPanel. Vertical scrolling, when a lot of rows are present, appears as required. Horizontal scrolling (via horizontal scroll bars), on the other hand, does not seem to appear even when there are a lot of characters in the LinkLabel. I have tried fiddling around with the AutoSize property by setting them all to false for every Control as, from my past experience, these can cause scroll bars to not appear.
Thanks in advance.