As a newbie at VB6, I'm building a flashcard application for my son.
(Learning how to read)
I've made a (colorful) Usercontrol.
This exist of a 1: "shape1" and 2. "textlabel1"
This control is placed on a form
Form1.usercontrol1
At runtime I want to modify the textlabel of de usercontrol.
Problem is I can't find a way to do this.
In the watch window I find:
"usercontrol1.object.Controls.Item1.caption"
But by coding this I get an error.
I would say it must be possible to code:
"usercontrol1.textlabel1.text"
or
"usercontrol1.object.Controls.textlabel1.caption"
but no...
What am I doing wrong?
(Learning how to read)
I've made a (colorful) Usercontrol.
This exist of a 1: "shape1" and 2. "textlabel1"
This control is placed on a form
Form1.usercontrol1
At runtime I want to modify the textlabel of de usercontrol.
Problem is I can't find a way to do this.
In the watch window I find:
"usercontrol1.object.Controls.Item1.caption"
But by coding this I get an error.
I would say it must be possible to code:
"usercontrol1.textlabel1.text"
or
"usercontrol1.object.Controls.textlabel1.caption"
but no...
What am I doing wrong?