473,748 Members | 9,596 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ScrollBar colors

Although the ScrollBar class has BackColor and ForeColor properties, these
properties don't seem to have any effect.

Is this correct? If so, is it possible to change the color of a ScrollBar?

[==Peter==]

Oct 28 '07 #1
4 1424
OK, since this is the only un-responded to topic in days, I'm going to guess
one CAN'T change the spots of this leooard... :)

[==Peter==]

"Peter Oliphant" <pe********@hot mail.comwrote in message
news:85******** *************** ***********@mic rosoft.com...
Although the ScrollBar class has BackColor and ForeColor properties, these
properties don't seem to have any effect.

Is this correct? If so, is it possible to change the color of a ScrollBar?

[==Peter==]

Oct 30 '07 #2
"Peter Oliphant" <po*******@roun dtripllc.comwro te in message
news:uj******** ******@TK2MSFTN GP03.phx.gbl...
OK, since this is the only un-responded to topic in days, I'm going to
guess one CAN'T change the spots of this leooard... :)

[==Peter==]

Probably no response because if you went to CodeGuru.com or CodeProject.com
you would most likely find a sample that would show you how to do it. If
you cannot find one at one of those websites, I would suggest deriving a
class from the scrollbar and subclassing it into the window you want to set
the color in.

--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
Oct 30 '07 #3
Thanks, Frank,

Previously I had never heard of either CodeGuru.com or CodeProject.com . And
so of course I didn't realize everyone was suppose to know about them. I
guess everyone has to hear about them for the first time from somewhere. I
come here to learn such things. I'll check them out.

But I'm not sure how deriving a sub-class on a ScrollBar will allow me to
change the ScrollBar color if the ScrollBar class doesn't permit it without
such sub-classing.

[==Peter==]

"Frank Hickman" <fhickman3_NOSP @M_noblesoft.ne twrote in message
news:uI******** ******@TK2MSFTN GP05.phx.gbl...
"Peter Oliphant" <po*******@roun dtripllc.comwro te in message
news:uj******** ******@TK2MSFTN GP03.phx.gbl...
>OK, since this is the only un-responded to topic in days, I'm going to
guess one CAN'T change the spots of this leooard... :)

[==Peter==]


Probably no response because if you went to CodeGuru.com or
CodeProject.com you would most likely find a sample that would show you
how to do it. If you cannot find one at one of those websites, I would
suggest deriving a class from the scrollbar and subclassing it into the
window you want to set the color in.

--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


Oct 31 '07 #4
OK, checked out CodeGuru.com. Did a search for 'scrollbar color'. Got back a
bunch of links. All the links I went to (abot 10 of them) were to posts by
people who asked the same question of how to change the scrollbar colors,
with nobody getting an answer, and most didn't even get response. And these
date back to over 6 YEARS ago.

Went to CodeProject. com. Here I found the same, plus a description on
sub-classing. It would easier for me to create my own scrollbar class FROM
SCRATCH than to do it by sub-classing. And at least I'd be in full control.
A ScrollBar is not that hard to write from scratch. I just didn't want to
re-invent the wheel if MS already provided one. But apparently I have to
write my own if I want to change the color of the 'wheel' in the case of
ScrollBars..

This seams very odd. Even though the ScrollBar class has BackColor and
ForeColor properties, for some reason we cant't use them. Why oh why is this
such a big deal? They must be using images and not colors, but then why do
BackColor and ForeColor exist AT ALL? It seems like 'less-than-opitmal'
design in this case (which is kind of rare for such Controls).

Oh well. Looks like one CAN'T change the colors of the ScrollBar. At least
nobody seems to know how...

[==Peter==]

"Frank Hickman" <fhickman3_NOSP @M_noblesoft.ne twrote in message
news:uI******** ******@TK2MSFTN GP05.phx.gbl...
"Peter Oliphant" <po*******@roun dtripllc.comwro te in message
news:uj******** ******@TK2MSFTN GP03.phx.gbl...
>OK, since this is the only un-responded to topic in days, I'm going to
guess one CAN'T change the spots of this leooard... :)

[==Peter==]


Probably no response because if you went to CodeGuru.com or
CodeProject.com you would most likely find a sample that would show you
how to do it. If you cannot find one at one of those websites, I would
suggest deriving a class from the scrollbar and subclassing it into the
window you want to set the color in.

--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.


Oct 31 '07 #5

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

Similar topics

1
15628
by: Pal Csepregi | last post by:
Hi can i remove somehow the horizontal scrollbar? just the horizontal! Thx PallR
2
1938
by: Red Wolf | last post by:
I have recently seen some code in a style sheet to change the colors and such of a scroll bar, specifically: scrollbar-arrow-color: #BA613F; scrollbar-face-color: #500F09; scrollbar-base-color: #500F09; scrollbar-dark-shadow-color: #BA613F; scrollbar-highlight-color: #BA613F; scrollbar-shadow-color: #BA613F;
7
26048
by: Sujan | last post by:
Hello all, Is it possible to remove scrollbar(s) without using frames. Is there any code which could be applied in body tag to remove scrollbar(s). Thanks in adv, Sujan
4
4401
by: Price Brattin | last post by:
I dragged a datagrid onto a VB.Net WinForm and used the properties page and a few lines of code to set it up, including the DataSource. No wizard setup was used. It works fine except for one thing: there is no vertical scrollbar even there are more lines than can be shown on the datagrid. There is plenty room on the right for the scrollbar but it is not there. If there is a scrollbar property for the .Net datagrid like in the VB6 DBgrid,...
9
4318
by: kjs | last post by:
Is there any was to control the color of the scrollbars when using the 'overflow: scroll' attribute? TIA, Karl
2
3422
by: NewGuy | last post by:
I'm new to scripting so this may be painful. I have created a JavaScript/HTML/CSS page. In the CSS code I set the colors for the scroll bars: * {scrollbar-arrow-color:#000} * {scrollbar-face-color: #697210} these are the default colors. In the HTML code I can use this same thing should I need to change
3
6547
by: papalarge | last post by:
Hey all... My boss typically dislikes the packaged components, and so I'm wondering if there's any code out there to modify the way a scrollbar looks. I'd love to change colors and, if possible, the arrow buttons. I've seen http://www.codeproject.com/vb/net/corescrollbar.asp and tried getting it to work, but so far I'm not impressed... the code is very chunky and frustrating to work with. Any other ideas out there?
1
13743
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is inconsistent in the detection of a vertical scrollbar. This involves situations when less than the client area is needed to hold the small amount of data. The inconsistency is when adjusting the panel size within or just below the bottom row....
0
1274
by: ravikumar4 | last post by:
Hi, I want to give custom colors to the list box.By using the back color and fore color property we can change the appearnce. By using the ownerdraw we can change the appearnce of items. Can anybody suggest me how to chnage the color of scrollbar. Any hint will be helpful for me. regards, ravi.
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9541
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9370
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8242
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4602
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3312
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.