I am creating a transparent form app, that should behave as a widget...
For now all works OK, but I would also like to prevent my app from being pushed back in the z-order when another app is brought into focus...
How can this be achieved?
.....
AlwaysOnTop(MainForm,True)
End Sub
private Sub getStage(o As JavaObject) As JavaObject
Return o.GetFieldJO("stage")
End Sub
Sub AlwaysOnTop(o As Form,boo As Boolean)
getStage(o).RunMethod("setAlwaysOnTop",Array(boo))
End Sub