View Single Post
  #8 (permalink)  
Old 05-11-2008, 07:37 AM
klaus's Avatar
klaus klaus is offline
Basic4ppc Veteran
 
Join Date: Oct 2007
Location: Switzerland
Posts: 433
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Hi Erel and WZSun,
Works fine !
I modified the code a bit to postion also the first form, in some programs I have only one form.

Code:
Sub App_Start
    LoadInit             ' reads the position of the main form frmTop and frmLeft

    door.New1(false)

    If Not(CPPC) Then
      door.FromControl("form1")
      door.SetProperty("StartPosition","Manual")
    End If

    Form1.Top=frmTop  ' sets the position
    Form1.Left=frmLeft
    Form1.Show

    If Not(CPPC) Then
      door.FromControl("form2")
      door.SetProperty("StartPosition","Manual")
'      door.FromControl("form3")
'      door.SetProperty("StartPosition","Manual")
    End If
'    ...
End Sub
Best regards
__________________
Klaus
Switzerland

Last edited by klaus : 05-12-2008 at 11:27 AM.
Reply With Quote