Can't access the RowSpan property at runtime?

when I delete the Listbox in the TableLayout cell, it has properties for ColumnSpan and RowSpan ... but when I go to the code and want to say "listBox1.RowSpan", there is no such property :( I want to do this because sometimes in my program I I want this list to accept one cell, and sometimes I want it to accept two cells. So how can I do this?

+3
source share
1 answer

To programmatically change the RowSpan program, you must do the following:

tableLayoutPanel1.SetRowSpan(listBox1, 2);

And put the right number of lines where I put 2.

+4
source

Source: https://habr.com/ru/post/1769142/


All Articles