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 ClientTest { public partial class AutoSendIntervalForm : Form { public int nInterval; public AutoSendIntervalForm() { InitializeComponent(); } private void btnApply_Click(object sender, EventArgs e) { nInterval = Convert.ToInt32(tbInterval.Text); } } }