전체 글 189

Git. 깃. 짖. 소스를 이전 버전으로..

SourceSafe, TFS만 사용 하다가 깃 처음 사용 해봄. 1. 단점.파일 하나 단위로 체크 인 안됨.기능이 너무 많음. 장점.기능이 너무 많음. 2. 소스 되 돌리기.2-1. 바로 이전 버전으로 되돌리기 git checkout 파일이름 2-2. 특정 이전 버전으로 되돌리기 git checkout 커밋코드 파일이름  ex)  "특정 파일(b,c)를 이전 시점으로 되돌리기 ==> git checkout 43da321 b.txt c.txt

develop 2025.01.20

델파이 프로그램 소스 보기

델파이를 c# 으로 컨버전 하는 프로젝트를 했었다. #프로그램 소스 보기Open(폴더 아이콘) : *.dpr 파일을 선택View Form (shift+F12) : 볼려는 소스 선택. #단축키F11 : 컨트롤 속성 창. object InspectorF12 : UI 및 소스 전환#프로그램 소스 보기 2UI 확인은 델파이 프로그램을 사용하고,소스는 Visual Code 혹은 파스칼 지원 되는 텍스트 에디터 툴을 사용 하는게 정신 건강에 이로움. #디버깅ctrl+F7 : 파라메터 내용 확인 가능.

develop 2025.01.20

c# devExpress Winform xtraGrid에서 그리드 내용 찾기

1. c# devExpress Winform xtraGrid에서 그리드 내용 찾기단, 컬럼 2개 이상의 내용 이다. 자체 기능으로 컬럼 필터나,   ctrl+F 로 그리드 내용을 찾을 수도 있고,코딩으로는 gridview1.LocateByDisplayText 이 있다. (https://simplain.tistory.com/461) 2. 코딩 컬럼 2개 이상의 값으로 행을 찾아야 할때는 DataTable의 함수를 이용해서 해결DataTable dt = gridControl1 as DataTable; DataRow[] drs = dt.Select ( string.Format ("col='{0}' and col2=''{1}", c1, c2);int frow = 0;if( drs.length > 0){   fr..

develop 2024.10.14

C# ToolTip 컨트롤에 자기 Name을 tooltip으로 보여주고 싶다.

1. C# ToolTip 컨트롤에 자기 Name을 tooltip으로 보여주고 싶다. 2. 코드ToolTip toolTip = new ToolTip();             toolTip.ShowAlways = true;             toolTip.SetToolTip(컨트롤, 툴팁내용); toolTip.SetToolTip(txt, txt.Name); toolTip.SetToolTip(grd, grd.Name); //이런 속성도 있지만 그닥 사용할 필요는 ...//toolTip.AutoPopDelay = 3000; //toolTip.InitialDelay = 2000; //toolTip.ReshowDelay = 1000; //toolTip.IsBalloon = true; //별로. 3. 둥.

카테고리 없음 2024.10.14

c# devExpress Winform XtraGrid Header BackColor, ForeColor

1. gridControl 의 헤더에 BackColor랑 폰트 컬러를 주고 싶다.폰트 컬러는 컬럼 속성의  ForeColor를 지정 해주면 되는데,BackColor는 그리드의 스킨을 제외하고 적용 해야 되는데 헤더 모양이 바뀌는 좀 그렇다. 2. 그래서 사용하는 것이 CustomDraw 이벤트를 사용해서,BackColor, ForeColor 지정 후 각 각 DrawBackground, DrawString 함수를 호출 해서 다시 그려 준다. private void grd_CustomDrawBandHeaer(..sender, ... e)  {      if (e.Band.Caption == _전역변수)      {          e.Appearance.BackColor = Color.Yellow;     ..

develop 2024.10.14

c# image to binary

Q. 이미지 파일을 바이너리 텍스트로 변환 하고 싶다.richTextBox에 보이게 하고, 텍스트 파일도 만들고 싶다. 참고.  binary to imagehttps://simplain.tistory.com/481 c# binary text to imageprivate void btnTxtToImg_Click(object sender, EventArgs e)         {             string base64String = rTxtBinayText.Text;             try             {                 byte[] imgBytes =simplain.tistory.com 1. private void btnImgToTxt_Click(object sender,..

develop 2024.09.20

c# binary text to image

Q. binary text 를 다시 이미지로 바꾸고 싶다. 참고.  image to binary texthttps://simplain.tistory.com/482 c# image to binaryQ. 이미지 파일을 바이너리 텍스트로 변환 하고 싶다.richTextBox에 보이게 하고, 텍스트 파일도 만들고 싶다. 참고.  binary to imagehttps://simplain.tistory.com/481 c# binary text to imageprivate void btnTxtToImg_Clicksimplain.tistory.com 1.        private void btnTxtToImg_Click(object sender, EventArgs e)         {             stri..

develop 2024.09.20
반응형