일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Github
- Google Spreadsheet
- PySpark
- Python
- math
- GIT
- Mac
- Redshift
- Kotlin
- PANDAS
- dataframe
- gas
- Java
- PostgreSQL
- Excel
- Google Excel
- hive
- Tkinter
- c#
- SQL
- array
- string
- google apps script
- 파이썬
- matplotlib
- Apache
- list
- django
- numpy
- Today
- Total
목록C# (91)
달나라 노트

MaximizeBox는 Window의 최대화 가능 여부를 설정합니다. MaxsimizeBox = true --> 최대화 가능 MaxsimizeBox = false --> 최대화 불가 MinimizeBox 는 Window의 최소화 가능 여부를 설정합니다. MinimizeBox = true --> 최소화 가능 MinimizeBox = false --> 최소화 불가 using System; using System.Windows.Forms; class Sample2 : Form { public static void Main() { Form fm = new Form(); fm.Width = 200; fm.Height = 200; Application.Run(fm); } } 보통 위처럼 Window를 띄우면 우측 ..

using System; using System.Windows.Forms; using System.Drawing; using WMPLib; class CardCatch { public static void Main() { // Constatns // Constants cts = new Constants(); Form fm = new Form(); PictureBox pb_30 = new PictureBox(); PictureBox pb_20 = new PictureBox(); PictureBox pb_15 = new PictureBox(); Timer tm_30 = new Timer(); Timer tm_20 = new Timer(); Timer tm_15 = new Timer(); int min_30 ..

MeasureString은 어떤 문자를 어떤 글씨체, 어떤 슬씨 크기로 적었을 때 그 글씨의 가로/세로 길이 정보를 측정해줍니다. MeasureString은 Paint event 내에서 Graphics 객체로부터 사용할 수 있는 method입니다. Syntax MeasureString(text, font) - text 크기를 측정할 대상 문자입니다. - font text에 적용할 Font 객체입니다. Font 객체는 아래와 같이 만들 수 있습니다. new Font(글씨체, 글씨크기) using System; using System.Windows.Forms; using System.Drawing; class CardCatch { public static void Main() { // Constatns //..

DrawString은 글씨를 그려줍니다. Window에 글씨를 띄워주기 위해선 Label을 이용하는 방법도 있지만 DrawString method를 이용하는 방법도 있습니다. 두 방법의 차이점은 Label은 마치 텍스트 박스에 글자를 담아서 나타내주는 것이라면 DrawString은 이미지처럼 글자를 그려주는 방식입니다. Syntax DrawString(Text, font, brush, x, y) 사용 방법은 위와 같습니다. - Text DrawString으로 적을 문자입니다. - font Font 객체를 전달합니다. Font 객체는 다음과 같이 사용할 수 있습니다. Font(글씨체, 글씨크기) - brush Brush 객체를 전달합니다. Brush 객체는 그려질 글씨의 색상정보를 담게됩니다. - x, y..