示例#1
0
        private void MainForm2_Load(object sender, EventArgs e)
        {
            //when form loads get and show username in the UsernameLabel
            UsernameLabel.Text = "Welcome " + username;

            //hide the ADDGroupBox  and friendListdataGridView
            AddFriendGroupBox.Hide();
            friendListdataGridView.Hide();

            //*********** setDataGridView SelectionMode --> FullMode in other to get
            //the complete dataGridView Rwwhen the user clicks a cell of that Row

            friendListdataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
        }
示例#2
0
 private void addToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // show grupBox of labels and textboxes to Add friend
     //unhide the ADDGroupBox
     AddFriendGroupBox.Show();
 }