Example #1
0
        private void LoadAddStudentControl(object sender, EventArgs e)
        {
            StudentTyp.DataSource    = dbconn.StudentTypeTable();;
            StudentTyp.DisplayMember = "StudentType";
            StudentTyp.ValueMember   = "StudentType";

            PhoneType.DataSource    = dbconn.PhoneTypeTable();;
            PhoneType.DisplayMember = "PhoneType";
            PhoneType.ValueMember   = "PhoneType";

            /*
             * This function contains all code that needs to be executed when the control is first loaded
             *
             * You need to edit this code.
             * Example: Population of Comboboxes and gridviews etc.
             *
             */
        }