noidea noidea - 1 year ago 151 Question

how to put winform behind all open programs

I'm calling a exe from a program in java, and i want it to stay behind all of the already opened programs.

I read that you can kinda bring to front with

set to
, but i find no way to put it in the back.

There's some workarounds, like
the previous form and setting to
after that, but that isn't quite good with my application. Thank you!

Answer Source

Calling the form's SendToBack (Inherited from Control) method from the Shown event handler is the key. Calling it from load for example, won't do anything since the window isn't "ready" yet anyway.

Private Sub Form1_Shown(sender As System.Object, e As System.EventArgs) Handles MyBase.Shown
End Sub
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download