Accessing texobject in button

Hello everybody,

I have a problem with accessing a textobject in a button.
The buttons i will use are grafically the same, only the text is different.

I want to try to create a default button with empty text. so that i later can edit the content of the button.

I think it should work like this:
but01.txtTitle.Text = “Links”;

What did i wrong!

Please help!

Greetz Ruben

are you defining the “Variable” name of the text box or the “instance” name? Check to make sure, that could be causing the problem.