Hi Again !
Thank you for your library, it's really COOL, but I have one problem, and I can't to realize.
1. Open FormEx1 (this is Form1 in the Basic4PPC / Designer-Tool)
2. Open FormEx2 (this is non existing form in Designer-Tool )
2. Open FormEx3 (same like FormEx2 - non existing )
So, now I want to put in FormEx2 WebBrowser.dll to surf here, and
in FormEx3 to put some commands, like - connection with device ... etc...
When I put WebBrowser in FormEx2 and I Run Application I Got this error:
- Unable to cast object of type 'System.Int32' to type 'System.Windows.Forms.Control'.
This is on line: web.New1("Form2",10,10,300,300)
Here is my code:
Sub App_Start
Screen.New1
FormEx1.New1("Form1")
FormEx1.Icon = AppPath & "\f2f.ico"
FormEx1.StartPosition = 1
FormEx1.WindowState = 2
FormEx1.MinimumWidth = 800
FormEx1.MinimumHeight = 600
FormEx2.New2("Form2","Server Platform",Screen.Width-225,Screen.Height-78)
FormEx2.Icon = AppPath & "\f2f.ico"
FormEx2.Color = Rgb (220,220,220)
FormEx3.New2("Form3","Pocket PC Platform",Screen.Width-805,Screen.Height-78)
FormEx3.Icon = AppPath & "\f2f.ico"
FormEx3.Color = Rgb (220,220,220)
FormEx1.IsMDIparent = true
FormEx1.MakeMDIchild(FormEx2.ControlRef)
FormEx1.MakeMDIchild(FormEx3.ControlRef)
FormEx1.Run
web.New1("Form2",10,10,300,300)
web.url = "http://localhost/"
End Sub
Sub FormEx1_Paint
FormEx2.StartPosition = 0
FormEx2.BorderStyle = 6
FormEx2.Width = FormEx1.Width-235
FormEx2.Height = FormEx1.Height-56
FormEx3.StartPosition = 0
FormEx3.Top = 0
FormEx3.Left = FormEx2.Width
FormEx3.BorderStyle = 6
FormEx3.Width = 220
FormEx3.Height = FormEx1.Height-56
FormEx3.Show
FormEx2.Show
End Sub
Can someone resolve this?
Thanks !!!