Desktop.ActiveWindow (gb.desktop)

Static Property ActiveWindow As Integer

Returns or sets the current active top-level window.