Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a VScrollBar control I've added to a form. I've shrink down the size and I plan to use it as a Updown type control, to update a Status label elsewhere on the screen. I've changed the properties of the VScrollBar to

 

Maximum = 0

Minimum = -200

 

And then the code looks like this:

 

   Private Sub VScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles VScrollBar1.Scroll
       lblStatus.Text = (VScrollBar1.Value * -1)
   End Sub

 

So basically what I'm trying to do here is make it so that when you click the up arrow, the number in the status label INCREASES.

 

Heres my problem. I can't go down below 9. I can start at 0 and click the down arrow and it changes to 9. I have VS.NET 2002 Academic Version.

 

thanks

 

Sam

Posted
It happens for me too, what you can do is lower the LargeChange property which causes this.

 

You're right , changing the LargeChange property to 1 fixed my problem.

 

thanks, I knew it was an easy fix.

 

But I don't understand why the LargeChange property comes into this!?! I thought that only fired when you actually clicked on the bar part of scroll bar....?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...