By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,288 Members | 1,243 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,288 IT Pros & Developers. It's quick & easy.

Listview with background picture

P: n/a
I have problems with ListView-control because of its GridLines bug in
Windows XP.

I created a function that creates a bitmap which presents those grid lines.
Then I set this image to ListView's BackgroundImage. The grid line bug is
fixed now but this creates an another problem.

While having a background image, list view won't show list item's backcolor
if it's set.

For example:

Listview1.BackgroundImage=MyBitmap
Listview1.Items(2).Backcolor=Colors.Red

That red background won't be seen. Any ideas how to show that backcolor and
have background image at the same time?

Thanks for your answer,
Teemu

Feb 9 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Teemu" <ts*****@hotmail.com> wrote in message
news:ds**********@phys-news4.kolumbus.fi...
I have problems with ListView-control because of its GridLines bug in
Windows XP.

I created a function that creates a bitmap which presents those grid
lines.
Then I set this image to ListView's BackgroundImage. The grid line bug is
fixed now but this creates an another problem.

While having a background image, list view won't show list item's
backcolor
if it's set.

For example:

Listview1.BackgroundImage=MyBitmap
Listview1.Items(2).Backcolor=Colors.Red

That red background won't be seen. Any ideas how to show that backcolor
and
have background image at the same time?

Thanks for your answer,
Teemu


Yeah, paint the background yourself. Shouldn't be too difficult to
calculate the dimensions, color w/transparency, and calling the
Graphics.DrawRectangle, you should be able to do it :)

Mythran

Feb 9 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.