Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21238

Two or More Text Labels in User Control?

$
0
0
I am wondering if there is a way I could use two labels in a UserControl? I am considering developing a Family Feud game in which the answer and point value appears in their respective text labels in the UserControl.

I have a UserControl from a Blockbusters game I worked on in 2009, and I already do know how to make certain areas of the image transparent. Plus it does contain a text label to display the appropriate letter. Is there any way I could include two text labels, and from the form, call the following:

In the UserControl:

Label1.Caption = "VISUAL BASIC" (which would represent a survey answer in Family Feud)
Label2.Caption = "88" (which would represent the dollar amount or point value)

Is it possible to do this:

UserControl1.Label1.Caption = "VISUAL BASIC"
UserControl1.Label2.Caption = "88"

?

Viewing all articles
Browse latest Browse all 21238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>