I'm working in a winform where I created a label in a panel. As I append text words, how do I cause the label to go to the next line when the text fills the width of the panel?
I tried the following code but it doesn't look right
int lbl= 150;
if (Lbl_full_list.Width > o)
{
my_Lbl.Text += "\n" + comboBox1.Text;
o += 150;
}
else
{
my_Lbl.Text.Text += " , " + comboBox1.Text;
}