Here is what I have tried… which is completely wrong I assume, as it did not work.
If ProgressBar1.Value > 5 < 20 Then
Label8.Text = "Hello"
End If
All help is greatly appreciated! Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Is one way.
AndAlsomeans that the condition will ‘short circuit’ if the first value evaluates to false. So if ProgressBar1.Value is not > 5 – it won’t bother checking the rest of the condition.You could also write it using
Andand it would evaluate both conditions. In this particular case, it won’t make much difference, but I generally prefer AndAlso/OrElse over And/Or