I am working on a windows application, in which i am using a table layout panel, in this table layout i have created 5 rows and that is autosize, now dynamically i am adding 4 radio buttons and text for radio button is a bit long but the problem is it is behaving like absolute and not showing the full text.
I am adding radio button like this-
for (int i = 0; i < 4; i++)
{
rbtn1 = new RadioButton();
rbtn1.Name = "rbtn" + (i + 1);
rbtn1.Text = "A jogger running at 9 kmph alongside a railway track in 280 metres ahead of the engine of a 120 metres long train running at 45 kmph in the same direction. In how much time will the train pass the jogger?";//ansList[i].ToString();
rbtn1.Dock = DockStyle.Fill;
rbtn1.Font = new Font("Verdana", 10);
tableLayoutExamPanel.Controls.Add(rbtn1, 1, i + 8);
}
I am working on this from last 10 hours.
Need help, Thanks a lot.