Article ID: 135612
Article Last Modified on 5/7/2003
ThisForm.Visible=.F.
ThisForm.Show(1)
ThisForm.Visible=.T.
******* Start of Example *******
frmModalForm=CREATEOBJECT("ModalForm")
frmModalForm.Show
READ EVENTS
DEFINE CLASS ModalForm AS Form
Top = 9
Left = 26
DoCreate = .T.
Caption = "Modal Form Test"
WindowType = 1 && Change WindowType to 0 to start the form as Modeless
ADD OBJECT Command1 AS CommandButton WITH ;
Top = 145, ;
Left = 31, ;
Height = 29, ;
Width = 94, ;
Caption = "Modal", ;
Name = "Command1"
ADD OBJECT Command2 AS CommandButton WITH ;
Top = 145, ;
Left = 127, ;
Height = 29, ;
Width = 94, ;
Caption = "Modeless", ;
Name = "Command2"
ADD OBJECT Command3 AS CommandButton WITH ;
Top = 145, ;
Left = 225, ;
Height = 29, ;
Width = 94, ;
Caption = "Release", ;
Name = "Command3"
PROCEDURE Command1.Click
ThisForm.Visible=.f.
ThisForm.Show(1)
ThisForm.Visible=.t.
ENDPROC
PROCEDURE Command2.Click
ThisForm.Visible=.f.
ThisForm.Show(0)
ThisForm.Visible=.t.
ENDPROC
PROCEDURE Command3.Click
ThisForm.Release
CLEAR Events
ENDPROC
ENDDEFINE
******* End of Example *******
Additional query words: kbvfp600
Keywords: kbbug KB135612