일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Mac
- c#
- Google Spreadsheet
- gas
- GIT
- Tkinter
- PySpark
- 파이썬
- Excel
- django
- Java
- PANDAS
- Apache
- Python
- array
- dataframe
- hive
- Kotlin
- Google Excel
- list
- math
- string
- SQL
- matplotlib
- Github
- numpy
- PostgreSQL
- Redshift
- google apps script
- Today
- Total
목록분류 전체보기 (832)
달나라 노트
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/vhDjP/btrCW1BmDfD/IKgyoBxknw69rhLKMaJg2k/img.png)
프로그램을 만들다보면 Window의 크기를 제한해야할 때가 있습니다. Window가 일정 크기 이상 커지지 못하게 하거나 Window가 일정 크기보다 작아지지 못하게 하는 등의 경우이죠. 이럴땐 Form의 MaximumSize, MinimumSize 옵션을 이용할 수 있습니다. Syntax Form.MinimumSize = new System.Drawing.Size(width, height); Form.MaximumSize = new System.Drawing.Size(width, height); 사용법은 위와 같습니다. Form 객체의 MinimumSize attribute에 Size 객체를 전달하면 됩니다. Form 객체의 MaximumSize attribute에 Size 객체를 전달하면 됩니다. M..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ncKjP/btrCY3kueaF/rs7p29kd7ZN4aaq358Wj6k/img.png)
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를 띄우면 우측 ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ybNFg/btrCW0WLjbp/Lgb189G6mfI3YUZClKZ6Kk/img.png)
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 ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Vg3vA/btrCPHJsHRj/VRzpkcI8TWzC1MSDLKMpNK/img.png)
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 //..