Good Afternoon. I am practicing c# on my own.I am developing a countdown timer dynamically. To display time in 00:00:00 format i'm using FlowLayoutPanel and labels , and set panel property "FlowDirection" to LefttoRight. The problem is, output is displaying like 00:00:00 in topdown manner(like 00 in first row, : in second row,00 in third row ,: in fourth row,00 in fifth row) but i want them to place side by side. Do i need to add another property or go with another panel(if so, please suggest me one). Thank you.
Asked
Active
Viewed 561 times
0
-
I tried this but it works fine to me. – tarzanbappa May 05 '14 at 06:26
-
@tarzanbappa, sir, if i develop using design it is working, but when i try to develop programmatically, it is displaying like topdown manner. Thank you for Trying to help me. – Mohan Krishna May 05 '14 at 06:37
-
So please put your code here.Otherwise we can't identify what is the problem. – tarzanbappa May 05 '14 at 07:08
-
Are you using 1 or 5 labels? A FlowLayoutPanel can only layout controls, not their contents. Do you set their width? Have you turned Autosize off? Do they have enough space for a horizontal layout? – TaW May 05 '14 at 07:20
-
@tarzanbappa, I got it sir. By using these two FlowLayoutPanel properties AutoSize = true; AutoSizeMode = AutoSizeMode.GrowOnly; My sincere thanks to you sir. – Mohan Krishna May 05 '14 at 07:47
-
@TaW, your suggestion helps me so much. Thank you. – Mohan Krishna May 05 '14 at 07:51