2018. 6. 19. 17:48


TextBox1.Text += "추가내용" + "\r\n";

'언어 > C#' 카테고리의 다른 글

Textbox 커서(포커스) 마지막으로 항상 오게 하는 방법  (0) 2019.03.26
[WPF] 응용프로그램 따라해보기  (0) 2018.08.21
C# 데이터 테이블 중복 제거  (0) 2017.12.26
Tray Application  (0) 2017.07.13
C# 한글 인코딩  (0) 2017.06.18
Posted by 까망후니
2018. 6. 8. 17:01

코드 압축하는 사이트


http://javascriptcompressor.com/

Posted by 까망후니
2018. 6. 8. 17:00

HTML 공부하는 사이트..


https://www.w3schools.com/default.asp

'언어 > 기타' 카테고리의 다른 글

버전관리 방법  (0) 2019.04.19
[python] 기초 강좌  (0) 2018.06.08
투명배경 이미지 파일 만들기  (0) 2017.10.16
Posted by 까망후니
2018. 6. 8. 15:43

Python 기초 강좌가 잘 정리된 사이트 입니다.


http://pythonstudy.xyz/



'언어 > 기타' 카테고리의 다른 글

버전관리 방법  (0) 2019.04.19
[HTML] 기초 공부  (0) 2018.06.08
투명배경 이미지 파일 만들기  (0) 2017.10.16
Posted by 까망후니
2017. 12. 26. 12:14

DataTable table = new DataTable();

//.......데이터 추가 하고... 중략 ..............

table = table.DefaultView.ToTable(true); //중복 제거



'언어 > C#' 카테고리의 다른 글

[WPF] 응용프로그램 따라해보기  (0) 2018.08.21
[C#] Textbox Multiline  (0) 2018.06.19
Tray Application  (0) 2017.07.13
C# 한글 인코딩  (0) 2017.06.18
[ini] ini파일 읽기 쓰기 기본 코드  (0) 2017.02.14
Posted by 까망후니
2017. 10. 16. 11:02

해당 사이트에서 제공합니다.

https://pixlr.com/editor/

'언어 > 기타' 카테고리의 다른 글

버전관리 방법  (0) 2019.04.19
[HTML] 기초 공부  (0) 2018.06.08
[python] 기초 강좌  (0) 2018.06.08
Posted by 까망후니
2017. 7. 13. 13:59


public partial class Form1 : Form

    {

        public Form1()

        {

            InitializeComponent();


            this.WindowState = FormWindowState.Minimized;

            this.ShowInTaskbar = false;

            this.Visible = false;

            this.notifyIcon1.Visible = true;

            notifyIcon1.ContextMenuStrip = contextMenuStrip1;


            MaximizeBox = false;

            MinimizeBox = false;

            //getService();

           // test();

        }



        private void Form1_FormClosed(object sender, FormClosedEventArgs e)

        {

            Application.Exit();

            this.notifyIcon1.Visible = false;

        }


        private void Form1_FormClosing(object sender, FormClosingEventArgs e)

        {

            e.Cancel = true;

            WindowState = FormWindowState.Minimized;

            this.ShowInTaskbar = false;

        }


        private void notifyIcon1_DoubleClick(object sender, EventArgs e)

        {            

            this.Show();

            this.Visible = true;

            this.ShowInTaskbar = true;

            this.WindowState = FormWindowState.Normal;

        }


        private void 종료ToolStripMenuItem_Click(object sender, EventArgs e)

        {

            Application.ExitThread();

            Environment.Exit(0);

            Application.Exit();

            this.notifyIcon1.Visible = false;

            

            /*

             * Application 강제 Process Kill

             */

            //System.Diagnostics.Process.GetCurrentProcess().Kill();

        }


    }

'언어 > C#' 카테고리의 다른 글

[C#] Textbox Multiline  (0) 2018.06.19
C# 데이터 테이블 중복 제거  (0) 2017.12.26
C# 한글 인코딩  (0) 2017.06.18
[ini] ini파일 읽기 쓰기 기본 코드  (0) 2017.02.14
[Thread]쓰레드 기본 코드  (0) 2016.07.08
Posted by 까망후니
2017. 6. 18. 14:46

private string convertASCII(string value)

        {

            byte[] convertByte = Encoding.ASCII.GetBytes(value);

            for (int i = 0; i < convertByte.Length; i++)

            {


            }

            value = Encoding.ASCII.GetString(convertByte);

            return value;

        }


        private string convertBASE64(string value)

        {

            byte[] convertByte = Encoding.Unicode.GetBytes(value);

            for (int i = 0; i < convertByte.Length; i++)

            {


            }

            value = Convert.ToBase64String(convertByte);

            convertByte = Convert.FromBase64String(value);

            value = Encoding.UTF8.GetString(convertByte);


            return value;

        }


        private string convertUNI(string value)

        {

            byte[] convertByte = Encoding.Unicode.GetBytes(value);

            for (int i = 0; i < convertByte.Length; i++)

            {


            }

            //value = Convert.ToBase64String(convertByte);

            //convertByte = Convert.FromBase64String(value);

            value = Encoding.UTF8.GetString(convertByte);


            return value;

        }

'언어 > C#' 카테고리의 다른 글

C# 데이터 테이블 중복 제거  (0) 2017.12.26
Tray Application  (0) 2017.07.13
[ini] ini파일 읽기 쓰기 기본 코드  (0) 2017.02.14
[Thread]쓰레드 기본 코드  (0) 2016.07.08
[C#] 걸린 시간 체크  (0) 2016.06.08
Posted by 까망후니
2017. 2. 14. 09:19

using System.Runtime.InteropServices;       


        [DllImport("kernel32")]

        private static extern long WritePrivateProfileString(string section, string key, string val, string filePath);

        [DllImport("kernel32")]

        private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size,             string filePath);


        private string FilePath = AppDomain.CurrentDomain.BaseDirectory + "init.ini";


// ini 파일에 쓰기

private void WriteIni(string section, string key, string value)

        {

            WritePrivateProfileString(section, key, value, FilePath);

        }


        // ini파일에서 읽기

        private string Readini(string section, string key)

        {

            StringBuilder temp = new StringBuilder(255);

            int ret = GetPrivateProfileString(section, key, "", temp, 255, FilePath);            

            return temp.ToString();

        }




         textBox.Text = Readini("Section 값", "Key 값"); //이렇게 읽고

         WriteIni("Section 값", "Key 값", textBox.Text); //이렇게 쓴다.

'언어 > C#' 카테고리의 다른 글

Tray Application  (0) 2017.07.13
C# 한글 인코딩  (0) 2017.06.18
[Thread]쓰레드 기본 코드  (0) 2016.07.08
[C#] 걸린 시간 체크  (0) 2016.06.08
[C#] ListView item 삭제  (0) 2016.03.22
Posted by 까망후니
2016. 12. 6. 00:50

https://msdn.microsoft.com/en-us/library/c0ccadae(v=vs.110).aspx



Posted by 까망후니