- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
2 Posted Topics
namespace CountDown public partial class Form1 : Form { public int counter = 0; public Form1() { InitializeComponent(); } private void btnStart_Click(object sender, EventArgs e) { int parsedValue; if (!int.TryParse(txtInput.Text, out parsedValue)) { MessageBox.Show("Please Enter Numbers Only"); } else { counter = Convert.ToInt32(txtInput.Text); timer1 = new Timer(); timer1.Tick += new …
try { MailMessage message = new MailMessage(); message.To.Add("[email protected]"); message.From = new MailAddress("[email protected]"); //See the note afterwards... message.Body = "Hi, How r you ?"; SmtpClient smtp = new SmtpClient("smtp.gmail.com"); smtp.EnableSsl = true; smtp.Port = 587; smtp.DeliveryMethod = SmtpDeliveryMethod.Network; smtp.Credentials = new NetworkCredential("[email protected]", "password"); smtp.Send(message); MessageBox.Show("Message sent successfully"); } catch (Exception ex) …
The End.
Thobani_1