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

MouseEventArgs를 사용해봅시다. 아래 코드는 Form의 어느 위치를 클릭하면 그 위치의 X, Y 좌표를 나타내주는 코드입니다. using System; using System.Windows.Forms; class MyProgram { public static void Main() { Form fm = new Form(); fm.Width = 500; fm.Height = 300; Label lbl = new Label(); lbl.Parent = fm; lbl.Width = 300; lbl.Height = 20; void fm_click(object sender, MouseEventArgs e) { String x = e.X.ToString(); String y = e.Y.ToString();..
C#/C#
2022. 4. 8. 22:16