WireLess Studio Widgets Developer's Guide
WSWDG ContentsWStForm class reference

EndCurrentForm

This method closes the form that is currently being displayed.

Ole declaration

VARIANT_BOOL EndCurrentForm(void);

Parameters
Return Value

On success, EndCurrentForm returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.

Remarks
Example
C#
using WirelessStudioOleWidgets;
WStFactory oFactory = new WStFactory();
WStForm oForm = new WStForm ();
short formId = 10;
short lineId = 15;
oFactory.CreateFormById(formId);
oFactory.CreateWidgetById((short)WSTFactoryConstants.WS_LINE, lineId , "MyLine", 15, 15, 30, 30, "");
oForm.AddObjectBydId(formId, lineId ;
oForm.SaveToTerminalById(formId);
oForm.ShowById(formId, true, true);
oForm.GetEvent();
oForm.EndCurrentForm();
Visual Basic 6 (Full Example: ListCtrlDemoModule.bas.txt)
Public wsForm As New WStForm
...
Case "exitButton"
	wsForm.EndCurrentForm
	GoTo EndProgram
...	
See also

Show | CommitChanges | SaveToTerminal

WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference