Problem with non-stop scrolling of the ComboBox drop-down list


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 8 of 8

Thread: Problem with non-stop scrolling of the ComboBox drop-down list

  1. #1
    Join Date
    May 2005
    Posts
    2

    Problem with non-stop scrolling of the ComboBox drop-down list

    Hi!
    I ran into a strange phenomena:
    After clicking on either the spin buttons (the small triangles) or the scroll bar itself of the drop-down list of a combobox, the scrolling doesn't stop until the list end is reached. The scrolling stops when the mouse pointer leaves the scroll bar area.
    The list values are the numbers 1 to 31.
    The application receives messages (via the serial port). The module that handles the received messages is laced with DoEvents. When no messages are sent to the application (the transmitter is turned off), the combobox functions properly.

    The application is VB6, SP6, under Windows XP, SP1 with 512 MRAM memory.

    Your help will be mush appriciated.
    Amir

  2. #2
    Join Date
    Feb 2004
    Location
    Colton, CA
    Posts
    550
    Sounds like a mouse driver issue. Are you using a Microsoft Explorer mouse or something? May be worth upgrading your IntelliPoint software if this is the case.

  3. #3
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    can be a mouse driver problem, as Bob suggested, but the fact that the application runs fine when the module with DoEvents is disabled is very suspiciuos. I saw something similar (scrollbars not stopping and wrong painting) using DoEvents. See if you can drive your code with a Timer instead of using DoEvents.
    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  4. #4
    Join Date
    Feb 2004
    Location
    Colton, CA
    Posts
    550
    Quote Originally Posted by mstraf
    can be a mouse driver problem, as Bob suggested, but the fact that the application runs fine when the module with DoEvents is disabled is very suspiciuos. I saw something similar (scrollbars not stopping and wrong painting) using DoEvents. See if you can drive your code with a Timer instead of using DoEvents.
    Marco
    Bob? Who is this Bob you speak or Marco?

  5. #5
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    Bob... that is a good question. I am forwarding it to what is left of the neurons in my brain because I really do not know! Sorry for that, Rich (because is that Rich, right?)
    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

  6. #6
    Join Date
    Feb 2004
    Location
    Colton, CA
    Posts
    550
    Yes it is Marco

    I THINK the reason you called me Bob is becuase you replied to a post of 'Bobs' yesterday saying 'Bob is correct...' or something like that

  7. #7
    Join Date
    Jan 2004
    Location
    Alexandria, VA
    Posts
    392
    Who is Bob.... hmmm...
    Bob Rouse
    Dimension Data

  8. #8
    Join Date
    Feb 2004
    Location
    Colton, CA
    Posts
    550
    Side show Bob?

    Bob Marley?

    Bob Dylan?

    Bob the Builder...


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center