Passing variable (time) from one form to another C#
Let's say I have two forms. The first one will contain the start button and the other one is the stop button. Is there a way wherein I can determine the elapsed time between pressing the start and stop button and show it in the 2nd form. I tried doing this and arrive at these codes Form 1: Start button namespace WindowsFormsApplication1 { public partial class Form1 : Form { public DateTime startTime2; public DateTime endTime; public TimeSpan ts_timeElapsed; public string s_timeElapsed; public Form1() { InitializeComponent(); } private void StartButton_Click(object sender, EventArgs e) {