Results 1 to 3 of 3

Thread: How to bind Scrollbar to Combobox?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    Chicago
    Posts
    97
    Hi,
    Here is a situation.I have a combo box with the style as simple combo and instead of drop down i want a Vertical scrollbar.The combo box has year in it ie,1998 to some year as 2005.Now i want to scroll the year in the combo box with vertical scroll bar.How can we do that and another question is that i want the default year as 2000 and when i click the up arrow then it should increase from 2000 and when i click the doen arrow then it should decrease from 2000.
    Any help would be highly appreciated.

    Regards

    Anil
    Anil

  2. #2
    PowerPoster Static's Avatar
    Join Date
    Oct 2000
    Location
    Rochester, NY
    Posts
    9,390

    Wink Maybe...

    Not sure if it will work...

    try this

    set the min value of the scrollbar to 1998
    set the max to 2005

    on form load set scrollbar.value = 2000

    maybe try this?
    on scroll change
    combobox1.text = scrollbar.value

    ?

    not tested...just popped into my head.
    JPnyc rocks!! (Just ask him!)
    If u have your answer please go to the thread tools and click "Mark Thread Resolved"

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    Chicago
    Posts
    97

    It Worked!!! Thanks Geoff

    Hi Geoff,
    It did worked!!! Thanks alot for your quick response.I just tested it and it worked.......

    Anil

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