C# .NET 자료실
- 전체
- Form
- Image/Picture/Icon
- Enviroment
- string
- File/Directory
- Menu
- windows
- Net
- DataBase
- LINQ
- Event
- DateTime
- General
- 에러해결
- 그외
- 정리예정
string C#, 16진수 TEXT => 10 진수 변환
2013.03.17 10:30
전체 코드
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 = "변환 실패"; } } } }
|
실행 결과
관련 문서가 검색되었습니다.
- [2018/02/26] List 에서 고유값 얻기 ()
- [2016/09/24] XML 으로 환경설정 저장하기 ( \n,엔터값 포함, NewLine) ()
- [2015/05/22] C#, 아두이노 간의 WIFI 통신으로 LCD 제어 (4565)
- [2015/03/13] 항상 마지막에 추가한 TEXT 보이게 ()
- [2014/01/17] ComboBox Text 편집 안되게 ()
- [2014/01/08] if 문에서 여러개 비교할때 () *3
- [2013/12/30] C++, C# 간단한 기능 비교 ()
- [2013/12/18] 3자리마다 ,(콤마) 찍기 (원화, 달러 표시) ()
- [2013/09/29] 설치된 IE 버전 얻기 ()
- [2013/08/29] int array to string (10278)