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

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

Brenner8 9 usb programlayıcı arayüz programı usburn ve kullanım kılavuzu

gsm sinyal seviyesi asu dbm nedir

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

transistör karşılık programları ve txt dosyası