public partial class Form1 : Form { public Form1() { InitializeComponent(); } public class inputbox { # region private windows contols and constructor private static Button btnok; private static Button btncancel; public inputbox() { } } #endregion #region windows form code private void button1_Click(object sender, EventArgs e) { InputBoxResult test = InputBox.Show("Prompt" + "\n" + "DDDD" + "Prompt" + "\n" + "DDDD" + "Prompt" + "\n" + "DDDD" + "Prompt" + "\n" + "DDDD" + "Prompt" + "\n" + "DDDD" + "Prompt" + "\n" + "DDDD" , "Title", "Default", 100, 0); #endregion //if( test.ReturnCode == DialogResult.OK ) // MessageBox.Show(test.Text); InputBoxResult test = inputbox.Equals("dfsdfs", "sdfsdf", "sdfsdf", 0, 100); } } }