All Cadcorp SIS API Methods

SetForegroundWindow

Description

Makes an application form the foreground window.

Syntax

Visual Basic
Public Function SetForegroundWindow( _
   ByVal hWndForm As Integer _
) As Integer

Parameters

hWndForm
The form to make the foreground window.

Remarks

Note: This method is intended for use only in 16-bit versions of Microsoft Visual Basic (3.0 and 4.0). In Microsoft Visual Basic 4.0 32-bit, 5.0, 6.0, and .NET, use the Win32 API call SetForegroundWindow instead.

Available: D MD

Groups:

Example

VB:

sis.SetForegroundWindow 1

Makes the window whose handle is 1 the foreground window.

VB Net:

Public SisHwnd As Integer
Declare Function SetForegroundWindow Lib "user32" (ByVal hwnd As Long) As Long
SetForegroundWindow (SisHwnd)