76 361
Assignments Done
Successfully Done
In May 2019

Answer to Question #5040 in C# for Rabbia

Question #5040
What should i do if i want to add 10 years to the present date and display it in a textbox2 where i have present date in textbox1. pls Reply.
Thnx in advance!!
Expert's answer
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication5
public partial class Form1 : Form
public Form1()

private void button1_Click(object sender, EventArgs e)
textBox2.Text = (int.Parse(textBox1.Text)+10).ToString();

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions