M
m. pollack
Hi,
I am using a System.Windows.Forms.ListView control and
would like to put an image in the background. Although the
BackgroundImage property is not exposed in the IDE
Properties window for the control, I figured that the
Listview, being descended from the Control class, should
implement the property, so I used the following code in my
form's constructor (after InitializeComponent(), of
course):
listView1.BackgroundImage = Image.FromFile
(@"C:\test2.bmp");
But nothing happens. I also tried this:
listView1.BackgroundImage = new Bitmap(@"C:\test2.bmp");
But the background is still blank. Any ideas?
Thanks, MP
I am using a System.Windows.Forms.ListView control and
would like to put an image in the background. Although the
BackgroundImage property is not exposed in the IDE
Properties window for the control, I figured that the
Listview, being descended from the Control class, should
implement the property, so I used the following code in my
form's constructor (after InitializeComponent(), of
course):
listView1.BackgroundImage = Image.FromFile
(@"C:\test2.bmp");
But nothing happens. I also tried this:
listView1.BackgroundImage = new Bitmap(@"C:\test2.bmp");
But the background is still blank. Any ideas?
Thanks, MP