All Questions
Tagged with tablelayoutpanel controls
9 questions
0
votes
1
answer
142
views
'AutoSize=true' panel height not adjusting when labels become multiline
I'm currently facing an issue with a panel in my C# WinForms application. The panel is docked at the top of the form with AutoSize set to True. Within this panel, I have a TableLayoutPanel also with ...
0
votes
1
answer
1k
views
How to programmatically make columns and rows fill an entire TableLayoutPanel
Hello!
I need to add buttons to a TableLayoutPanel, and I wish for these buttons to resize and align next to each other with no padding.
In order to do this I was thinking of making the ...
0
votes
1
answer
48
views
What does it mean by "label = (Label)tableLayoutPanel.Controls[i];"?
It is a partial code of a mind game in windows form. My question is why do I've to set the "Label" of tableLayoutPanel1.Controls into the local variable label? Also Why it is put inside an if ...
0
votes
1
answer
566
views
Assigning each Control in a TableLayoutPanel to a 2D Array
I created a TableLayoutPanel with 100 slots (10x10). In each cell, I created a new TableLayoutPanel.
Then I created an array TableLayoutPanel[,] tb = new TableLayoutPanel[10,10];
So now I want to ...
0
votes
1
answer
565
views
C# tablelayoutpanel panel control
I have a tablelayoutpanel divided in 4 columns and 4 rows. by using Panel box = new Panel(); I filled in all 4x4 tablelayout panel with panels. now I have to delete in example a Panel which is in 2 ...
2
votes
2
answers
4k
views
VB.Net: Using and addressing buttons in TableLayoutPanel
Hi I have this TablelayoutPanel setup currently in my program to create a grid of buttons that will later correspond to a specific column and row:
'****INITIALISES TABLE LAYOUT INTO FORM******
...
3
votes
3
answers
16k
views
Find row index of control added to TableLayoutPanel
I need to take an action when a control is added to a TableLayoutPanel in Windows Forms. I am handling ParentChanged event of the control to find out if the control is added to a parent(here ...
3
votes
2
answers
2k
views
C# TableLayoutPanel replace control?
I was wondering if it was possible to replace one control in a TableLayoutPanel with another at runtime. I have a combo box and a button which are dynamically added to the TableLayoutPanel at runtime,...
1
vote
2
answers
1k
views
Stop a tablelayoutpanel from scrolling
I have a C# .NET 3.0 project that uses a TableLayoutPanel containing several rows of controls. If I scroll down such that the top item is no longer visible, then remove a control in one column and ...