H
Helmut Giese
Hello out there,
When I place a control at design-time into a TableLayoutPanel the
control gets a new property 'RowSpan' (which I can set as needed to
have it span multiple fields).
Problem: I am populating the panel at run-time and don't arrive at a
way to set this 'RowSpan' property.
When I say
myCtrl.RowSpan = 2;
I get the compiler error
System...Control does not contain a definition for 'RowSpan'
- which is correct, as a 'stand-alone' control doesn't have it.
But at run-time, once the control is placed into the panel, this
property will exist (I think - I see it in the property editor as soon
as I put the control into the panel).
Q: How to set the RowSpan property at run-time? Could reflection be of
any help here?
Any advice will be greatly appreciated.
Best regards
Helmut Giese
When I place a control at design-time into a TableLayoutPanel the
control gets a new property 'RowSpan' (which I can set as needed to
have it span multiple fields).
Problem: I am populating the panel at run-time and don't arrive at a
way to set this 'RowSpan' property.
When I say
myCtrl.RowSpan = 2;
I get the compiler error
System...Control does not contain a definition for 'RowSpan'
- which is correct, as a 'stand-alone' control doesn't have it.
But at run-time, once the control is placed into the panel, this
property will exist (I think - I see it in the property editor as soon
as I put the control into the panel).
Q: How to set the RowSpan property at run-time? Could reflection be of
any help here?
Any advice will be greatly appreciated.
Best regards
Helmut Giese