Page 640 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 640

if  (Init_MySQL(ipbox.Text,  namebox.Text,  idbox.Text,  passwdbox.Text))

                             {
                                  readbox.Text  = "[MySQL]  " +  ipbox.Text  +  "  connection  success!\n";
                                  button1.Enabled  = true;

                                  checkBox1.Enabled = true;
                                  textBox1.ReadOnly = false;
                                  textBox1.Text = "command  here";
                             }
                        }



                        //입력창  클릭시
                        private  void textbox_click(object  sender,  EventArgs  e)

                        {
                             textbox_clear();
                        }


                        //입력창에  Enter  누를때

                        private  void textbox_keydown(object  sender,  KeyEventArgs  e)
                        {
                             if  (e.KeyCode ==  Keys.Enter)
                             {


                                  //timer1.Enabled  =  true;
                                  readbox.Text  +=  "[Tools]   "  +  textBox1.Text  +  Environment.NewLine;


                                  //입력창=Select

                                  if  (textBox1.Text  ==  "Select")
                                  {
                                        try

                                        {
                                             listView1.Items.Clear();
                                             listView1.BeginUpdate();
                                             readbox.Text  +=  "[MySQL]  Loading Database . .  .\n";



                                             var MConn  =  new  MySqlConnection(strCnn);
                                             MConn.Open();
                                             var Comm  =  new  MySqlCommand(select,  MConn);



                                                         -  633  -
   635   636   637   638   639   640   641   642   643   644   645