For now i write small apps and i will use Werner method.
Thanks a lot for your respond! On Sat, Nov 15, 2008 at 10:37 AM, Tomas Eroles i Forner < [EMAIL PROTECTED]> wrote: > Hi all! > > El dv 14 de 11 del 2008 a les 11:40 -0500, en/na Stephen Bungay va > escriure: > > Demosthenes Koptsis wrote: > > > Hi to all, > > > > > > i have two simple questions as a beginner, > > > > > > 1) how to have access to control values from different forms? > > > > > > > Set the controls in all forms to be public as Werner suggests, or use > > properties and strictly control what information gets exposed to the > > outside world. > > I don't like this method, because everything is public and in large > projects it can be a source of problems. > My advice is to include public methods in the form you want to use from > another. > > > > > > For example i have 2 forms, Form1 and Form2 > > > I want to write something like the next code, in Form2 > > > > > > ------- Form1 code ---------------- > > > TextArea1.Text="Hello world" > > > ----------------------------------------- > > > > > > ------- Form2 code ---------------- > > > Message.info(Form1.TextArea1.Text) > > > ----------------------------------------- > > > > > > but i cant. is there any way? > > On form1 put that: > > Public Sub SetTextArea1(myText as String) > me.TextArea1.Text = myText > End Sub > > Then, on form2, you can add these lines where you need: > > [....] > Form1.SetTextArea1("Hello world!!") > [....] > > Hope be useful > > > > > > > 2) how to add a separator line with menu editor in a menu. > > > > > > > > > I use gambas2-2.9.0 and openSuse10.2 > > > > > > Thanks my friends for your time > > > > > Can't help you with this one.. I know I've done this but it was so > > long ago now... I'g have to hunt down an example. > > > > In the menu editor, add a menu entry where you want, and clear the > caption > > > Regards > > > ------------------------------------------------------------------------- > > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > > Build the coolest Linux based applications with Moblin SDK & win great > prizes > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > _______________________________________________ > > Gambas-user mailing list > > Gambas-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/gambas-user > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Γεια χαρα σε όλους!!! Regards, Demosthenes Koptsis ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user