본문 바로가기 메뉴 바로가기

Mit

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Mit

검색하기 폼
  • 분류 전체보기 (142)
    • Maui (7)
    • Xamarin (33)
    • WPF (47)
    • VBA (3)
    • C# WinForm (7)
    • ETC (41)
  • 방명록

C# WinForm (7)
Lable 줄바꿈

Lable 줄바꿈 = Environment.NewLine time_label.Text = DateTime.Now.ToString("yyyy-MM-dd(ddd)"+ Environment.NewLine+" tt hh:mm:ss");

C# WinForm 2021. 7. 19. 21:03
int to float 형변환

private int Calculatepercent(int value, int target_value) { float Tvalue = (float)value / (float)target_value; return Convert.ToInt32(Tvalue * 100); } 차트100% 값으로 변환하기 위해 int 값을 받아 float로 형변환을 먼저 해줘야 한다.

C# WinForm 2019. 4. 4. 18:03
메인폼에서 서브폼에 값 전달

메인폼의 버튼 클릭후 textbox1 값을 서브폼 label1값에 할당한다. // main formnamespace pos { public partial class Form1 : Form { Form2 Fx; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Fx.label1.Text = textBox1.Text; } private void Form1_Load(object sender, EventArgs e) { Fx = new Form2(); Fx.Show(); } } } // sub formnamespace pos { public partial class Form2 : For..

C# WinForm 2019. 3. 27. 13:57
소켓 통신

소켓통신 프로그래밍http://blog.naver.com/PostView.nhn?blogId=ege1001&logNo=220538424007&parentCategoryNo=&categoryNo=26&viewDate=&isShowPopularPosts=false&from=postView

C# WinForm 2019. 2. 25. 10:54
FileStream 읽어올때 한글깨짐 해결하자 ^^

using System; using System.IO; using System.Text; //인코딩에 관한 내용이 들어있음 namespace ConsoleApplication1 { class Class1 { [STAThread] static void Main(string[] args) { Encoding encode = System.Text.Encoding.GetEncoding("ks_c_5601-1987"); FileStream fs = new FileStream(@"c:/temp/test.txt",FileMode.Open,FileAccess.Read); StreamReader sr = new StreamReader(fs,encode); //여기에 넣어주면 인코딩됨 string str = sr.Read..

C# WinForm 2019. 2. 20. 10:56
C# 텍스트 박스 숫자만 입력

12345678private void txtInterval_KeyPress(object sender, KeyPressEventArgs e){ //숫자만 입력되도록 필터링 if(!(char.IsDigit(e.KeyChar) || e.KeyChar == Convert.ToChar(Keys.Back))) //숫자와 백스페이스를 제외한 나머지를 바로 처리 { e.Handled = true; }} 출처: https://terrorjang.tistory.com/39 [개발자 공간]

C# WinForm 2019. 2. 19. 19:09
윈폼 프린터 세팅

https://www.c-sharpcorner.com/uploadfile/puranindia/pagesetupdialog-in-C-Sharp/https://godffs.tistory.com/324 // 프린터 네임확인printDialog1.PrinterSettings.PrinterName; printDialog1.Documnet = printDocument1printDocument1printPreviewDialog1.Documnet = printDocument1pageSetupDialog1.Documnet = printDocument1 프린터를 선택하여 인쇄https://docs.microsoft.com/ko-kr/dotnet/framework/winforms/advanced/how-to-choose-t..

C# WinForm 2019. 2. 19. 13:41
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • WPF Textbox
  • 연산자 뒤에 피연산자가 없습니다.
  • Linux SSH Multi Computer Join
  • 암호 마스터키
  • Entry '' has empty native path
  • Xamarin.Ios Firebase Phone SMS OTP Send
  • Xamarin Firebase Phone User Add
  • WPF Scrollviewer in ScrollViwer
  • SkiaSharp
  • GetCellContent CheckBox Value
  • Xamarin.Ios Firebase Phone User Add
  • 서버 수준의 URN 필터
  • WPF Datagrid Cell Value Change
  • Xamarin Firebase Phone Auth
  • c# Encrypt / Decrypt
  • Xamarin.Ios Firebase Phone Auth
  • Xamarin reCAPTCHA
  • Microcharts
  • ClickOnce 인증서 인증기간 변경
  • Xamarin.Forms
  • Embeded 한글Font적용
  • C# LINQ Left join
  • Xamarin SMS OTP Send
  • FileStream Add Byte
  • Windows IIS FTP 디렉토리 목록 오류
  • Label Text LineBreak in Xaml
  • ssl_client_socket_impl.cc
  • WPF Excel Export Microsoft.Office.Interop 성능향상(열 기준으로 복사)
more
«   2025/05   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바