[Gambas-user] Public Form Controls

Bruce Steers bsteers4 at gmail.com
Sun Jul 23 19:57:56 CEST 2023


On Sun, 23 Jul 2023 at 18:11, Demosthenes Koptsis <demosthenesk at gmail.com>
wrote:

> Hello,
>
> is there a way to access a second form controls like Form2.TextBox1 from
> FMain without enable Public Form Control from options ?
>
>
Sure
you can use the Form[] _get method
Form2["TextBox1"]

that will return Control.class to properly acces TextBox.class do this...

Dim tb As TextBox = Form2["TextBox1"]
tb.Text = "hello"



BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230723/af0015e5/attachment.htm>


More information about the User mailing list