c# hex to binary code


 Hex sayıyı binary sayıya çeviren c# vs2022 kodunu drive linkinden indirebilirsiniz:

https://drive.google.com/file/d/1GHZlN6fkNAbPEg9G5QATVK6DDP2DU79a/view?usp=sharing

Kod: (C# form uygulaması arayüzüne textbox1 ve textbox2 eklenmesi yeterlidir)

namespace hexTObinary
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        public static string hex2bin(string value)
        {
            if (string.IsNullOrEmpty(value))
                return string.Empty;

            return Convert.ToString(Convert.ToInt32(value, 16), 2).PadLeft(value.Length * 4, '0');
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            string hexValue = textBox1.Text;
            string binaryValue = hex2bin(hexValue);
            textBox2.Text = binaryValue;
        }
    }
}

 

 

 

 

Yorumlar

Popüler Yayınlar:

pickit3 pk3 download indir linkleri

gsm sinyal seviyesi asu dbm nedir

dc motor yönü değiştirme devresi

grup priz ara kablo yapımı

fan aspiratör motoru dönüş yönü değiştirme

elektrikli fırın devre bağlantı şeması