C# - Make Transparent Color

How To Make Transparent Color  In C#

Transparent Color In C#


In This C# Tutorial  We Will See How To Make A Panel Background Color Transparent With RGBA In CSharp Programming Language And Visual Studio.

background image from pixabay.com


Project Source Code:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class transparent_background_color : Form
    {
        public transparent_background_color()
        {
            InitializeComponent();
        }

        private void transparent_background_color_Load(object sender, EventArgs e)
        {
            panel1.BackColor = Color.FromArgb(150, 0, 0, 0);
        }
    }
}



//OutPut:

Transparent Background Color In C#



Share this

Related Posts

Previous
Next Post »