using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace ModbusSlave.Dialog { public partial class InputValueDialog : Form { public string Value { get { return tbValue.Text; } set { tbValue.Text = value; } } public InputValueDialog() { InitializeComponent(); } private void btnOk_Click(object sender, EventArgs e) { this.Value = tbValue.Text; } } }