|
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace VStudioCleaner_ns
{
/// Author: Dennis Lang - 2009
/// http://home.comcast.net/~lang.dennis/
///
/// Used to prompt for input from a tabular list field.
/// Place box directly over tabular list field and monitor change event.
///
public partial class FieldBox : Form
{
public FieldBox()
{
InitializeComponent();
}
private void textBox_TextChanged(object sender, EventArgs e)
{
}
public string FieldText
{
get { return this.textBox.Text; }
set { this.textBox.Text = value; }
}
private void textBox_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Return)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
else if (e.KeyCode == Keys.Escape)
{
this.DialogResult = DialogResult.Cancel;
this.Close();
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I love C/C++ for its speed and power and C#/Visual Studio for quick application development.
Unix/Linux is my favorite OS
Android Studio is the best IDE I have used.