473,326 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Scrollbar "flashes" when it has the focus?

Hiya,
I'm giving my vertical scrollbar the focus so it can handle mousewheel
events. When I give it the focus with ScrollBar.Focus(), it starts flashing
(at least the drag bar does). Is there any way to stop this from happening?
Its quite distracting.
Thanks.

Robin
Nov 20 '05 #1
2 2725

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:cd*******************@news.demon.co.uk...
I'm giving my vertical scrollbar the focus so it can handle mousewheel
events. When I give it the focus with ScrollBar.Focus(), it starts flashing (at least the drag bar does). Is there any way to stop this from happening? Its quite distracting.


That's the way it's made to work and why it's recommended that you never
give a scroll bar focus. I believe you can call the HideCaret() API function
to stop the flashing. However, I would look for a different solution that
doesn't involve giving focus to the scroll bar.
Nov 20 '05 #2
Ahh. Well the problem is I've made a custom Thumnail list view using a
panel (I'm drawing my own list view items) in order to get around various
limitations in the other list view controls. Panels can't have the focus
and so cannot get mousewheel messages, scrollbars can though. Perhaps I
should produce a hack with an invisible control of some kind I can set the
focus to in order to catch these mouse messages??

"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:eK**************@TK2MSFTNGP11.phx.gbl...

"Robin Tucker" <id*************************@reallyidont.com> wrote in
message news:cd*******************@news.demon.co.uk...
I'm giving my vertical scrollbar the focus so it can handle mousewheel
events. When I give it the focus with ScrollBar.Focus(), it starts flashing
(at least the drag bar does). Is there any way to stop this from

happening?
Its quite distracting.


That's the way it's made to work and why it's recommended that you never
give a scroll bar focus. I believe you can call the HideCaret() API

function to stop the flashing. However, I would look for a different solution that
doesn't involve giving focus to the scroll bar.

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: geoffhanna | last post by:
I am not referring to the standard PrintDialog. This dialog pops up every time my printdocument.printpage event fires. He only has one button - "Cancel" and contains no other controls I am...
0
by: William Wisnieski | last post by:
Hello Everyone: I'm having a very strange problem occurring with my Access 2000 database. I call it the "mystery record." Here's the story: I have a query by form that returns a record set...
0
by: Wayne | last post by:
If I open a report using this code it "flashes" as it opens: DoCmd.OpenReport "NumbersByDate", acViewPreview DoCmd.Maximize This is probably to be expected. If I open the same report using...
0
by: jmw | last post by:
Anybody know why I suddenly get this Error message in C# 2005 express edition or how to solve it? " Error 36 Resource identifier 'RubberPicker.RubPicMain.resources' has already been used in...
2
by: beaker | last post by:
Hello, I'm trying to call a program (and/or batch file) from a command line from within a standalone VB.NET application - something I would have done using the "System()" function if I was...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
2
dmjpro
by: dmjpro | last post by:
what concept i have that when i wrting my own event handler then if my handler returns false then the default event handler will no more execute. so i can stop the window default behaviours...
2
by: brianflannery | last post by:
Greetings! My situation is this. I currently have a database of which in a form displays jpeg pictures (one at a time) which are linked to the db and stored in a separate folder. I have set up a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.