System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo( "en-US" ); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo( "en-US" );
영어로 설정할 경우
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo( "en-US" ); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo( "en-US" ); try { throw new InvalidCastException(); } catch(Exception e) { MessageBox.Show(e.Message); }
한글로 설정할 경우
System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo( "ko-KR" ); System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo( "ko-KR" ); try { throw new InvalidCastException(); } catch(Exception e) { MessageBox.Show(e.Message); }
'.Net > Winform' 카테고리의 다른 글
C# ListView Headr Column Size 변경 막기 (0) | 2012.08.28 |
---|---|
C# Excel 작성 (0) | 2012.08.28 |
C# DirectX.AudioVideoPlayback 을 이용한 동영상 재생 (11) | 2012.08.21 |
C# 중복 실행 방지 Mutex (0) | 2012.08.14 |
C# DragDrop & DragEnter (0) | 2012.08.10 |