用户控制代码: private string lastName; public string LastName { get { return lastName; } set { lastName = value; textBox1.Text = value; } } 表格代码: using (SqlConnection myDatabaseConnection = new SqlConnection(myConnectionString.ConnectionString)) { myDatabaseConnection.Open(); using (SqlCommand SqlCommand = new SqlCommand(“Select LastName, Image from Employee”, myDatabaseConnection)) { int i = 0; SqlDataReader DR1 = SqlCommand.ExecuteReader(); while (DR1.Read()) { […]
这是否可以在Windows窗体中使用三角形PictureBox控件而不是矩形窗体?