I have a form for showing short messages to the user while program is running.
I want the form width to fit to the length of the message + some left/right margins.
I set the changing in the Form_Load with this code:
private void formShortMessageForm_Load(object sender, EventArgs e)
timer1.Interval = (int)tid;
timer1.Enabled = true;
const int margin = 50;
this.Width = margin + label1.Text.Length * 6 + margin;
but it don't work - the width does NOT change on the screen - where should I put the "changing-lines" so they do the job = changing the width on the screen ?
Best regards KSor, Denmark
View Complete Post