コード例 #1
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Start_Up frm = new Start_Up(true);

            frm.Show();
        }
コード例 #2
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            this.Hide();
            Start_Up sup = new Start_Up();

            sup.Show();
        }
コード例 #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            Start_Up frm = new Start_Up(true);

            frm.Show();
        }
コード例 #4
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                SmtpClient client = new SmtpClient("smtp.gmail.com", 587);
                client.EnableSsl             = true;
                client.Timeout               = 10000;
                client.DeliveryMethod        = SmtpDeliveryMethod.Network;
                client.UseDefaultCredentials = false;
                client.Credentials           = new NetworkCredential("*****@*****.**", "T@whidsultan");
                MailMessage msg = new MailMessage();
                msg.To.Add("*****@*****.**");
                msg.From    = new MailAddress("*****@*****.**");
                msg.Subject = textBox1.Text;
                msg.Body    = textBox2.Text;
                client.Send(msg);
                MessageBox.Show("Your Comment Has Been Sent To The Admin Successfully.Thanks.");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            this.Hide();
            Start_Up s1 = new Start_Up(true);

            s1.Show();
        }
コード例 #5
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            this.Hide();
            Start_Up sp = new Start_Up(true);

            sp.Show();
        }
コード例 #6
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (type == 1)
     {
         this.Hide();
         All_User au = new All_User(uu);
         au.Show();
     }
     if (type == 2)
     {
         this.Hide();
         Start_Up frm = new Start_Up(true);
         frm.Show();
     }
 }
コード例 #7
0
 private void button5_Click(object sender, EventArgs e)
 {
     if (type == 0)
     {
         this.Hide();
         Start_Up sp = new Start_Up(true);
         sp.Show();
     }
     else if (type == 1)
     {
         this.Hide();
         All_User au = new All_User(uu);
         au.Show();
     }
 }