[Gambas-user] Fwd: Sending Data From one Form to another

Alex Schaller gambas at ...1077...
Thu Aug 25 14:02:20 CEST 2005


Hello Steve!

Here is how I did send data from one Form to another.
Create two forms (Form1 and Form2) and place a editor control on Form1 and a 
Button on form2 then paste the code below into the appropriate Form class.

What I basically did is to create a public handle to the editor on form1. 
There is probably a better way of doing this, but it works .

Have a great day!


' Gambas class file Form1

PUBLIC heditor AS Control

PUBLIC SUB Form_Open()

  heditor = Editor1
  form2.Show

END


' Gambas class file Form2

PUBLIC SUB Button1_Click()

  Form1.heditor.insert("Hello World")

END




More information about the User mailing list