On 01/10/2015 11:08 AM, Jørn Erik Mørne wrote:
>
>> Hello,
>>
>>
>>
>> One can address a control on another form with fMain.txtHello.Text. This
>> syntax also works for other container objects. I have a form with a panel
>> control. There are several controls within the panel. To avoid naming
>> conflicts I want to keep the panel controls separate from the parent form.
>> Something like panel.txtEdit.Text would be great but, it does not work. I
>> can get the "children" collection of the panel and get the control names.
>> That does not help. I need to get to the control and use its properties and
>> events. Is there a way to do this?
>>
>>
>>
>> Thanks
>>
> This is the way: Panel1.Children[1].Text
>

The documentation for Container.Children says that it, "Returns a collection 
[...]" But it does not return a Collection (class).

That's too bad. The ability to do Panel1.Children["TextBox1"].Text would be 
nice.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to