I bet at least some of you know the following code string well:
VB Code:
RndLabel.Text = (Int(Rnd() * 10))
Well, this works in one of my programs doing the exact same thing - setting a label's code to a random number between zero and nine. However, in a different program, the following:
Is underlined. The mouseover 'explanation' tells me "Operator '*' is not defined for types 'System.Windows.Forms.Label' and 'Integer'".
Direct excerpt from my program:
VB Code:
If Roomnmberrnd.Text = "102" Then
Rnd.Text = (Int([U]Rnd() * 20[/U]))
End If
Why does it tell me this? 
Edit: In my program, the 'Rnd.Text' does not have 'Rnd' underlined because that is the name of the label I'm working with (yes, Rnd).