this.DropDownList1.SelectedValue得到索引值,相當於數據庫中的id
this.DropDownList1.SelectedItem得到顯示值,相當於數據庫中的內容
this.DropDownList1.SelectedIndex得到序號,從0開始。。
注意區分
this.DropDownList1.SelectedValue得到索引值,相當於數據庫中的id
this.DropDownList1.SelectedItem得到顯示值,相當於數據庫中的內容
this.DropDownList1.SelectedIndex得到序號,從0開始。。
注意區分
this.richTextBox2.SelectionStart=this.richTextBox2.Text.Length; this.richTextBox2.ScrollToCaret();
public partial class MyMessageBox : Window { public static void Show(string strErrorInfo) {