Click here to Skip to main content
15,907,687 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
public Form1()
        {

            SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, true);
            InitializeComponent();
          
            var pos = this.PointToScreen(listView1.Location);
            pos = pictureBox1.PointToClient(pos);
            listView1.Parent = pictureBox1;
            listView1.Location = pos;
            listView1.BackColor = Color.Transparent;

        }


What I have tried:

public Form1()
        {

            SetStyle(System.Windows.Forms.ControlStyles.SupportsTransparentBackColor, true);
            InitializeComponent();
          
            var pos = this.PointToScreen(listView1.Location);
            pos = pictureBox1.PointToClient(pos);
            listView1.Parent = pictureBox1;
            listView1.Location = pos;
            listView1.BackColor = Color.Transparent;

        }
Posted
Updated 30-Nov-18 2:28am
Comments
Richard MacCutchan 30-Nov-18 5:25am    
You have posted a block of code - twice, but with no explanation of what your problem is. If you want help then you need to provide proper details of your problem.
MADANKUMAR.M 30-Nov-18 7:55am    
I need to make my listview transparent and above given code which i used

1 solution

Asked and answered, right here on CodeProject:

https://www.codeproject.com/Questions/195384/In-C-how-to-make-listview-background-Transparent
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900