Mytsaw Posted August 18, 2013 Author Share Posted August 18, 2013 i use visual basic 10 and i have a problem i want to add 1 to my variable every time the progressbar1.Value = 80 my code is> Dim Views As Byte> > Views = 0> > ProgressBar1.Increment(4)> > If ProgressBar1.Value = 80 Then> WebBrowser1.Navigate(TextBox1.Text)> ProgressBar1.Value = 0> Views = +1> End If> > lblViews.Text = viewsbut the lvlViews is only for 1 second Link to comment Share on other sites More sharing options...
pandacoder Posted August 18, 2013 Share Posted August 18, 2013 You are setting it to 1 every time.If this is valid syntax in VB10, use: Views += 1Otherwise use Views = Views + 1 Link to comment Share on other sites More sharing options...
Mytsaw Posted August 18, 2013 Author Share Posted August 18, 2013 thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now