Results 1 to 3 of 3

Thread: [RESOLVED] trouble with vscrollbar

  1. #1

    Thread Starter
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Resolved [RESOLVED] trouble with vscrollbar

    i added a vscrollbar control and coded the following
    VB Code:
    1. Private Sub vs1_Change()
    2. SaveSetting App.EXEName, "Options", "timeout", Val(txttimeout.Text)
    3. txttimeout.Text = vs1.Value
    4. End Sub

    but when i click the up button ,the value reduces and when i click the down it increases.but i think it should be the other way around ??

    why is that so?

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: trouble with vscrollbar

    the Top is considered to be 0, as with most things in Windows.

    just do
    VB Code:
    1. Private Sub vs1_Change()
    2.     txttimeout.Text = [B]vs1.Max - [/B]vs1.Value
    3. End Sub

  3. #3

    Thread Starter
    Frenzied Member litlewiki's Avatar
    Join Date
    Dec 2005
    Location
    Zeta Reticuli Distro:Ubuntu Fiesty
    Posts
    1,162

    Re: trouble with vscrollbar

    yea that works thanks again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width