[Gambas-user] Modify a control in another form

Keith Clark keithclark at ...2185...
Sun Sep 23 00:31:16 CEST 2012


On 12-09-22 06:23 PM, richard wrote:
> On 23/09/12 08:03, Keith Clark wrote:
>> How do I modify settings of a control on another form?  Let's say that I
>> want to be able to control the number of rows and columns of a grid
>> view, gvSampleGrid, on form, fGameGrid from form, fGameSetup.
>>
>> Would it not be fGameGrid.gvSampleGrid.rows.count=10?
>>
>> I am working with the book A beginner's Guide to Gambas but find it
>> confusing on the basics.
>>
>> Thanks.

>> If you have set your projects options to make your controls public you
>> can address any control on anther form with the correct syntax
>>
>> What error message to you get when you run your code?
>>
>> richard
>>
>>
That is exactly what I didn't do!  Set the controls to public.  Done now 
and it works fine.  Thanks!

Keith





More information about the User mailing list