إخوتي الكرام
في الكود المرفق أحاول أن أمسح محتويات كل ال TextBox دفعة واحد ولكن لم تنجح الفكرة ،،،، ممكن :D :D :D
Dim MyTxt As System.Windows.Forms.TextBox For Each MyTxt In Me.Controls MyTxt.Text = "" Next MyTxt
ولكن تظهر هذه الرسالة
An unhandled exception of type 'System.InvalidCastException' occurred in StockSymbol.exe Additional information: Specified cast is not valid.