c# - How to create a color from ARGB value

Create a color from ARGB value
CreateColor.aspx

<%@ Page Language="C#" %>
<%@ Import Namespace="System.Drawing" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e) {
        int alpha = Int32.Parse(TextBox1.Text);
        int red = Int32.Parse(TextBox2.Text);
        int green = Int32.Parse(TextBox3.Text);
        int blue = Int32.Parse(TextBox4.Text);
        Label1.ForeColor = Color.FromArgb(alpha, red, green, blue);
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>How to create a color from ARGB value programmatically in asp.net</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2 style="color:Green">Create Color From ARGB Value</h2>
        <asp:Label 
             ID="Label1" 
             runat="server"
             Font-Bold="true"
             Font-Size="XX-Large"
             Text="Dynamic Color"
             >
        </asp:Label>
        <br /><br />
        <asp:Label 
             ID="Label2" 
             runat="server"
             Font-Bold="true"
             ForeColor="DodgerBlue"
             Text="Alpha"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox1" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="FloralWhite"
             >
        </asp:TextBox>
        <br />
        <asp:Label 
             ID="Label3" 
             runat="server"
             Font-Bold="true"
             ForeColor="DodgerBlue"
             Text="Red"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox2" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="FloralWhite"
             >
        </asp:TextBox>
        <br />
        <asp:Label 
             ID="Label4" 
             runat="server"
             Font-Bold="true"
             ForeColor="DodgerBlue"
             Text="Green"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox3" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="FloralWhite"
             >
        </asp:TextBox>
        <br />
        <asp:Label 
             ID="Label5" 
             runat="server"
             Font-Bold="true"
             ForeColor="DodgerBlue"
             Text="Blue"
             >
        </asp:Label>
        <asp:TextBox 
             ID="TextBox4" 
             runat="server" 
             BackColor="DodgerBlue" 
             ForeColor="FloralWhite"
             >
        </asp:TextBox>
        <br />
        <asp:Button 
             ID="Button1" 
             runat="server"
             ForeColor="DodgerBlue"
             Font-Bold="true"
             Text="Create Color and Change Label Color"
             OnClick="Button1_Click"
             />
    </div>
    </form>
</body>
</html>
More asp.net examples