Hi there,
I am showing a message box like this:
public Home()
{
InitializeComponent();
folderBrowserDialog1.SelectedPath = TSMLfolder;
DialogResult res = folderBrowserDialog1.ShowDialog();
if (res == DialogResult.OK)
{
TSMLfolder = folderBrowserDialog1.SelectedPath;
MessageBox.Show("You are now working in the folder " + TSMLfolder, "Environment Information", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
The message box appears minimized. I am on Vista. Am I not using the proper method?
Thanks,
Emilie
Message box appears minimized
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Jul 21, 2008, 2:38 AM EDT
Create an event handler for Form_Shown and move the code used to open the folder browser dialog there. Your code will fire after the form is rendered and the messagebox will appear normally and will not get minimized.