Altova StyleVision 2024 Professional Edition

This is a global field that returns a reference to the last form object that was created via CreateForm() or ShowForm().



lastform -> formObj : System.Windows.Forms.Form



The following JScript code shows the form "FormName" as a dialog box.


CreateForm( "FormName" );
if ( lastform != null )
   lastform.textboxFirstName.Text = "Daniela";
   lastform.textboxLastName.Text = "Heidegger";
   var dialogResult = lastform.ShowDialog();


The values of both textbox controls are initialized with the help of lastform.


© 2018-2024 Altova GmbH