2024/09 7

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

c# devExpress gridControl에서 click 이벤트가 있어 double Click이 안될 경우

Q.  데브익스프레스 그리드 컨트롤에서클릭, 더블클릭 이벤트 같이 있을 경우 더블 클릭 안됨. 이를 위한 해결책.  A. 그리드 속성을 수정은 안되고 키인은 가능할 상태로 두고, 키인 전에는 클릭, 키인 이후에는 더블클릭이 되게 한다.1. GridView의 OptionsBehavior.Editable 속성을 True 2. private void gridView1_ShownEditor(object sender, System.EventArgs e) {      DevExpress.XtraGrid.Views.Grid.GridView view = sender as DevExpress.XtraGrid.Views.Grid.GridView ;      view.ActiveEditor.DoubleClick -= Act..

develop 2024.09.20

C# 윈폼에서 Panel(Control)을 팝업처럼 움직이게

1. 디자인팝업 타이틀. lablel1panel1  2. 코딩Point clickLocation= new Point(); private void lable1_MouseMove(object sender, MouseEventArgs e) {         if (e.Button == MouseButtons.Left)          {               panel1.Left += e.X - clickLocation.X;               panel1.Top += e.Y - clickLocation.Y;         } } private void lable1_MouseDown(object sender, MouseEventArgs e) {         if (e.Button == MouseBu..

develop 2024.09.12
반응형