Bringing windows to the front

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a .Net 2 WinForms apps that can spawn off co-existing multiple windows
(appears in task bar).

I want to bring the new windows to front without making them top most (so
Alt+Tab will work). How can I do this?

I experimented with
this.SendToBack()
newForm.Show()
newForm.BringToFront()
newForm.Activate()
newForm.Focus()
newForm.aControlInNewForm.Focus()
 
Hi,
you can try this code:
newForm.ShowInTaskBar = true;
newForm.WindowState = FormWindowState.Normal;
newForm.Activate();
Because activate works only when state of form is not minimized.Or else if
this does not work then you use SetForeGroundWindow API.
 
Back
Top