본문 바로가기
728x90

프로그래밍/C#21

C# devexpress 윈도우 10 폰트 문제 해결 해결방법은 main 폼이 열리는곳에 지정 DevExpress.Utils.AppearanceObject.DefaultFont = new System.Drawing.Font("고딕", 9); 또는 프로그램 메인에 추가 [STAThread]static void Main() { DevExpress.XtraEditors.WindowsFormsSettings.DefaultFont = new Font("굴림", 9); Application.Run(new Form1());} devexpress 기본 폰트는 tahoma 이다 tahoma 폰트가 영문폰트인데 윈도우 8 부터 한글로 사용할땐 나눔고딕으로 쓰여서 작아보인다. 그렇기에 tahoma 를 쓰지말고 다른 폰트로 바꿔야한다. 개인적으론 굴림이나 돋움이 젤나은것같다. 2019. 9. 17.
C# 에서 left, right, mid 함수 사용방법 C# 에서 left, right, mid 함수 사용방법 substring를 이용한 방법으로 아래에 필요한 것 복사하고 엑셀처럼 함수 사용하면 됨. Left public string Left(string Text, int TextLenth) { string ConvertText; if (Text.Length < TextLenth) { TextLenth = Text.Length; } ConvertText = Text.Substring(0, TextLenth); return ConvertText; } Right public string Right(string Text, int TextLenth) { string ConvertText; if (Text.Length < TextLenth) { TextLenth =.. 2018. 12. 18.
SMTP 서버에 보안 연결이 필요하거나 클라이언트가 인증되지 않았습니다. 지메일 구글메일로 보내는 프로그램을 만들었는데 SMTP 서버에 보안 연결이 필요하거나 클라이언트가 인증되지 않았습니다. 이런 오류가 발생했을때는 https://myaccount.google.com/lesssecureapps 여기 들어가서 보안수즌이 낮은 앱 허용 으로 바꾸면 됨 2018. 3. 5.
datagridview rows 삭제 하는 방법 How to clear datagridview all rows datagridview rows 삭제 하는 방법입니다 dataGridView1.Rows.Clear(); 이렇게 하면 됩니다 하지만 컬럼명 하고 다 날아가 버리게 되죠 그냥 rows 만 삭제하고 싶을때 ((DataTable)dataGridView1.DataSource).Rows.Clear(); 이렇게 하면 컬럼명 하고 다 남아 있으며 rows만 삭제 됩니다. 2017. 4. 26.
728x90