2013-06-27 39 views

回答

0

後如空或不檢查所有文本框沒有做事件的所有文本框。 This is the link

Dim emptyTextBoxes = 
    From txt In Me.Controls.OfType(Of TextBox)() 
    Where txt.Text.Length = 0 
    Select txt.Name 
If emptyTextBoxes.Any Then 
    MessageBox.Show(String.Format("Please fill following textboxes: {0}", 
        String.Join(",", emptyTextBoxes))) 
End If 
相關問題