I am new to VB, and still learning. Please help me.
I am developing a simple VB application, in Visual Studio 2010, where in we have to enter values in the fields given. I need to add a REFRESH button, which should act like a clr screen command. When i press that button, all the data fields should go back to its default values or the current values should be cleared.
And I need to know how to connect this app to Outlook, so that it sends out a mail by fetching the data we entered in the fields.
Jump to Post
What you mean by current values? You can loop though controls and clear the contents.
For Each cntrl As System.Windows.Forms.Control In Me.Controls If cntrl.GetType.ToString = "System.Windows.Forms.TextBox" Then cntrl.Text = String.Empty End If Next
I am clearing all the textbox content to blank in …
All 4 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.