Hi,
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.
agnair
0
Newbie Poster
Recommended Answers
Jump to PostWhat you mean by current values? You can loop though controls and clear the contents.
for exampleFor 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
Pgmer
50
Master Poster
Featured Poster
agnair
0
Newbie Poster
Pgmer
50
Master Poster
Featured Poster
Netcode
33
Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.