0

How can i get the left location of a cell in a TableLayoutPanel in pixels on form in C# WinForms .Net v2.0?

Edit: I have seen this but it only has Width and Height.

Community
  • 1
  • 1
Matin Lotfaliee
  • 1,745
  • 2
  • 21
  • 43

1 Answers1

1

I added the Widths of every cell to get the Left of a specific cell using this code:

int left = 0;
for(int i = 0; i < theCellIndex; i++)
  left += tableLayoutPanel1.GetColumnWidths()[i];
Matin Lotfaliee
  • 1,745
  • 2
  • 21
  • 43