Hmmm. I want to go to New York, but I don't want to leave my home. Sometimes
what you need to do and what you want to do in order to achieve what you
need to to are 2 completely contradictory things. I guess you'll just have
to decide which of the 2 things is the thing that you want more than the
other.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
What You Seek Is What You Get.
> Thanks, but i don't want to do any ownerdraw.
> The thing is that the corners of the icon is white, and i want it to be
> darker or transparent.
>
> /Peter
Please Kevin - I want to change the transparent color or the background
color because thats what i need.
I don't want to ownerdraw the entire control just to change one icon.
The problem is the icon and it should be fixed there - not by creating new
problems.
BR
Peter
> Hmmm. I want to go to New York, but I don't want to leave my home.
> Sometimes what you need to do and what you want to do in order to achieve
[quoted text clipped - 7 lines]
>>
>> /Peter
Linda Liu [MSFT] - 18 Sep 2006 11:47 GMT
Hi Peter,
Do you mean that you want to set the plus/minus icon to a transparent
color?
You could disable the XP visual styles to your application in order to
display a transparent plus/minus icon.
To do this, C#comment out the line of code
'Application.EnableVisualStyles();' in the Program.cs file if you're using
. If you're using VB.Net, right-click the project in the Solution Explorer
and choose Properties. In Project Designer, select the Application tab.
Clear the checkbox before the 'Enable XP visual styles' option.
If this is not what you need, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Peter Larsen [] - 19 Sep 2006 11:41 GMT
Hi Linda,
What i mean is that it seems like all XP controls are designed to be placed
on white backgrounds.
Try place a ProgressBar on a dark/black background and you will see 4 white
dots in each corner - it doesn't look nice.
BR
Peter
Linda Liu [MSFT] - 20 Sep 2006 05:30 GMT
Hi Peter,
Yes, this appearance is a feature of XP visual styles. If you don't like
it, you may disable the XP visual styles in your program.
You could do this by following the steps I mentioned in my previous reply.
If you have any concerns, please feel free to let me know.
Sincerely,
Linda Liu
Microsoft Online Community Support
Peter Larsen [] - 25 Sep 2006 08:14 GMT
Hi Linda,
This is not the kind of answer i had hoped for, but i got the message: If i
want XP standard controls placed on darker backgrounds, i have to use
ownerdraw.
BR
Peter
Kevin Spencer - 18 Sep 2006 12:15 GMT
Hi Peter,
You don't have to draw the whole Control, just the plus signs. When you
override the OnPaint method, first, call the base class's OnPaint method to
draw the Control, then add to it.

Signature
HTH,
Kevin Spencer
Microsoft MVP
Chicken Salad Surgery
What You Seek Is What You Get.
> Please Kevin - I want to change the transparent color or the background
> color because thats what i need.
[quoted text clipped - 16 lines]
>>>
>>> /Peter