experts,
I define a form from a prg file but it always cannot got focus when I click a button in another form to call it.
*****************
Public oform1
oform1=createobject("form1"
oform1.Show
Return
******************************************************
Define Class form1 As Form
Height = 400
Width = 620
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
AutoCenter = .T.
ShowWindow = 2
Add Object cmdExit As CommandButton With ;
Top = 330, ;
Left = 504, ;
Height = 27, ;
Width = 84, ;
Caption = "E\<xit", ;
Name = "CmdExit
Procedure cmdExit.Click
Thisform.Release()
Endproc
Enddefine
****************************
Please help me.Thanks.
John Satellite
I define a form from a prg file but it always cannot got focus when I click a button in another form to call it.
*****************
Public oform1
oform1=createobject("form1"
oform1.Show
Return
******************************************************
Define Class form1 As Form
Height = 400
Width = 620
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
AutoCenter = .T.
ShowWindow = 2
Add Object cmdExit As CommandButton With ;
Top = 330, ;
Left = 504, ;
Height = 27, ;
Width = 84, ;
Caption = "E\<xit", ;
Name = "CmdExit
Procedure cmdExit.Click
Thisform.Release()
Endproc
Enddefine
****************************
Please help me.Thanks.
John Satellite