일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 파라미터
- MFC
- SDK
- 셋업
- Firebird
- xml
- PostgreSQL
- 델파이
- 문자열
- 입문
- 초보
- 기초
- SQL
- Visual Basic
- Visual Studio 2005
- WIN32 SDK
- Delphi
- 예제
- 파이어버드
- 시리얼 통신
- 소니
- VB.NET
- dll
- MySQL
- c#
- winsock
- 데이터베이스
- 설치
- vb
- 인스톨
- Today
- Total
목록C#/기타 (15)
프로그래밍 노트
private void button1_Click(object sender, EventArgs e) { string myStringDate = "1999/9/9"; // String을 DateTime으로 변환 DateTime myDate = DateTime.Parse(myStringDate); // DateTime을 String으로 변환 string myConvertedDate = myDate.ToString("yyyy/MM/dd hh:mm:ss"); this.Text = myConvertedDate; } DateTime.Parse를 할때 format을 잘못 지정하면 FormatException이 발생함
using System;using System.Collections.Generic;using System.Linq;using System.Windows.Forms; namespace ListToArray{ public partial class Form1 : Form { public Form1() { InitializeComponent(); } /// /// List를 Array로 복사 /// /// /// private void btnListToArray_Click(object sender, EventArgs e) { List testList = new List(); Test test = new Test(); test.name = "aaa"; test.weight = 50.3; testList.Add(t..
커서 모래시계만들기this.Cursor = Cursors.Wait; 디폴트 커서로 변경하기 this.Cursor = null;
프로그램에서 리스트뷰의 항목을 복수 선택할 수 있게하는 코드 for (int i = 0; i < 3; i++) (listviewTt.ItemContainerGenerator.ContainerFromIndex(i) as ListViewItem).IsSelected = true; 이것 찾느라고 참 시간 많이 버렸다. -.-;;당연한 이야기겠지만 이것을 하려면 리스트뷰의 SelectionMode는 멀티나 익스텐드로 해주어야 된다.