I use showdialog for show modal windows, but i have a problem in some computers with windows XP or windows 7 the parent window show in front after show a second modal window. My program is in .NET 4. Any suggestion?
In my main window i have a button with the code:
private void btnBox_Click(object sender, EventArgs e)
{
frmBox fBox = new frmBox();
fBox.ShowDialog();
}
And my code in a button inner frmBox is:
private void btnSearch_Click(object sender, EventArgs e)
{
frmSearch fSearch = new frmSearch();
fSearch.ShowDialog();
}