Exemplo n.º 1
0
        private void Form2_Load(object sender, EventArgs e)
        {
            Connection conObj = new Connection();

            try
            {
                SqlDataReader myReader  = null;
                SqlCommand    myCommand = new SqlCommand("select StNo,firstName,lastName,year,GPA,contactNo,email from STUDENT",
                                                         conObj.connect());
                myReader = myCommand.ExecuteReader();
                while (myReader.Read())
                {
                    lblStNo.Text      = myReader["StNo"].ToString();
                    lblFirstName.Text = myReader["firstName"].ToString();
                    lblLastName.Text  = myReader["lastName"].ToString();
                    lblLevel.Text     = myReader["year"].ToString();
                    lblGPA.Text       = myReader["GPA"].ToString();
                    lblContactNo.Text = myReader["contactNo"].ToString();
                    lblEmail.Text     = myReader["email"].ToString();
                }
            }
            catch (Exception Ex)
            {
                MessageBox.Show(Ex.ToString());
            }

            ProfilePanel.BringToFront();
        }
Exemplo n.º 2
0
 private void profileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
 }
Exemplo n.º 3
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
     this.Text = "Dr. Chathura Rajapaksha";
 }
Exemplo n.º 4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
     this.Text = "IM/2014/027";
 }
Exemplo n.º 5
0
 private void frmstudents_Load(object sender, EventArgs e)
 {
     ProfilePanel.BringToFront();
 }