본문 바로가기

TextBox4

textbox vertical alignment 이벤트 추가 (TextChanged) 이전글 참고해 주세요. using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; public class VerticalTextBox : Control { public VerticalTextBox() { //OnPaint의 e.Graphics.DrawRectangle 잔상 제거 -> ControlStyles.ResizeRedraw 필수 base.SetStyle(ControlStyles.OptimizedDoubleBuff.. 2023. 6. 27.
C# Winform | textbox vertical alignment | custom control C# Winform | textbox vertical alignment | custom control 1. TextBox 상속 클래스 만들기 프로젝트 -> 새 항목 추가 -> 클래스 클래스 이름 : VerticalTextBox.cs 2. TextBox 상속 클래스 Code 작성 using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; public class VerticalTextBox : Control { public.. 2020. 12. 4.
C# Winform | Watermark in a textbox | Placeholder | custom control C# Winform | Watermark in a textbox | Placeholder | custom control 1. TextBox 상속 클래스 만들기 프로젝트 -> 새 항목 추가 -> 클래스 클래스 이름 : wmTextBox.cs 2. TextBox 상속 클래스 Code 작성 using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; public class wmTextBox : TextBox { public w.. 2020. 11. 25.
C# Winform | Watermark in a textbox | Placeholder C# Winform | Watermark in a textbox | Placeholder Watermark Class 버전 참고 C# Winform | Watermark in a textbox | Placeholder | custom control C# Winform | Watermark in a textbox | Placeholder | custom control 1. TextBox 상속 클래스 만들기 프로젝트 -> 새 항목 추가 -> 클래스 클래스 이름 : wmTextBox.cs 2. TextBox 상속 클래스 Code.. program-day.tistory.com c# Textbox 기본 컨트롤에 Watermark 삽입. 1. Textbox Event 이용하기 - Enter / Leave 이벤트 사.. 2020. 2. 27.