TrackBar Skinning

G

Guest

Greetings!

We are working on a project that has a bunch of TrackBars spec'ed as graphic
controls. In other words, they are slick looking and green.

In the design phase, these controls look great on the printed page, though
when I try to get the TrackBar to look the way the concept was presented, it
just doesn't seem to let me tweak it.

Can you please tell me what I can do to easily customize the TrackBar
control? Skinning the bar that moves up and down would be great.

Thank you in advance,
Michael Gurevich
 
N

Nicholas Paldino [.NET/C# MVP]

Michael,

There isn't much you can do, I'm afraid without doing all of the
painting yourself. You can override the OnPaint method, and render the
trackbar yourself when needed (depending on the properties of the object).

If you are using .NET 2.0, you will be able to use the TrackBarRenderer
to help create some of the elements of the trackbar, but you will probably
have to do some color adjustments to the image it paints.

Hope this helps.
 
G

Guest

Hi Nicholas,

Thank you for sharing this with me. Would you happen to know where I can
find instructions on doing this? We are not yet using 2.0.

Cheers,
Michael Gurevich


Nicholas Paldino said:
Michael,

There isn't much you can do, I'm afraid without doing all of the
painting yourself. You can override the OnPaint method, and render the
trackbar yourself when needed (depending on the properties of the object).

If you are using .NET 2.0, you will be able to use the TrackBarRenderer
to help create some of the elements of the trackbar, but you will probably
have to do some color adjustments to the image it paints.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

AtlasApollo said:
Greetings!

We are working on a project that has a bunch of TrackBars spec'ed as
graphic
controls. In other words, they are slick looking and green.

In the design phase, these controls look great on the printed page, though
when I try to get the TrackBar to look the way the concept was presented,
it
just doesn't seem to let me tweak it.

Can you please tell me what I can do to easily customize the TrackBar
control? Skinning the bar that moves up and down would be great.

Thank you in advance,
Michael Gurevich
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top