Custom Width Message Box per Label Length?
Posted on 2006-07-07
I have two problems:
1. My text does not show on my message box, I found the Thread(sleep) is a problem.....
2. I would like to base the winform (custom message box) on the varrying label length...
Leave it to microsoft to NOT allow for a more flexable MessageBox.Show.
As if thier thousands of programmers have never needed to auto-close one.
Anyway, here's what I have so far:
private void Messages_Load(object sender, EventArgs e)
this.Width = lblMessage.Text.Length; // always too narrow, cuts-off half of label.
[Form1] calling Messages form to open....
Messages msg = new Messages();
msg.lblMessage.Text = "Thank You For Choosing Us";