c# - Row Autosize property not working of Table Layout? -
i working on windows application, in using table layout panel, in table layout have created 5 rows , autosize, dynamically adding 4 radio buttons , text radio button bit long problem is behaving absolute , not showing full text.
i adding radio button this-
(int = 0; < 4; i++) { rbtn1 = new radiobutton(); rbtn1.name = "rbtn" + (i + 1); rbtn1.text = "a jogger running @ 9 kmph alongside railway track in 280 metres ahead of engine of 120 metres long train running @ 45 kmph in same direction. in how time train pass jogger?";//anslist[i].tostring(); rbtn1.dock = dockstyle.fill; rbtn1.font = new font("verdana", 10); tablelayoutexampanel.controls.add(rbtn1, 1, + 8); }
i working on last 10 hours.
need help, lot.
i realise old question, however:
- set dock style of each radiobutton dockstyle.none
- set autosize = true each radiobutton.
autosize won't work if have dock style set. make sure above true each child control on table.
Comments
Post a Comment