DataAdapter1.Fill(DataDS1, "data");
foreach (DataRow dr1 in DataDS1.Tables["data"].Rows)
{
textBox1.AutoCompleteCustomSource.Add(dr1[0].ToString());
}
textBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
textBox1.AutoCompleteSource = AutoCompleteSource.CustomSource;
以上~~~然後在TEXTBOX1上輸入的時候~~~就會變得超帥氣!!!
有點類似GOOGLE的自動搜尋 自動完成之類的~~~~
唷呼!!! ^0^
沒有留言:
張貼留言