I bet at least some of you know the following code string well:

VB Code:
  1. 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:

VB Code:
  1. Rnd() * 10

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:
  1. If Roomnmberrnd.Text = "102" Then
  2.             Rnd.Text = (Int([U]Rnd() * 20[/U]))
  3.         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).