16진수 TEXT => 10 진수 변환

   

전체 코드


Hexa2Decimal.zip





   

Code

   

   

   

   

using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Windows.Forms;

 

namespace Hexa2Decimal

{

public partial class Form1 : Form

{

public Form1()

{

InitializeComponent();

}

 

private void button1_Click(object sender, EventArgs e)

{

try

{

int iVal = Convert.ToInt32(txtInput.Text, 16);

this.lblOutput.Text = iVal.ToString();

}

catch

{

this.lblOutput.Text = "변환 실패";

}

}

}

}

 

 

 

 

 

 

실행 결과

 

 

 

 

출처: http://whiteat.com/75929

 

 


+ Recent posts