Exemple #1
0
 private void txtPort_Enter(object sender, EventArgs e)
 {
     SendKeys.Send("{Home}");
     txtPort.SelectAll();
 }
Exemple #2
0
		public void SelectedTextTest ()
		{

			MaskedTextBox mtb;

			mtb = new MaskedTextBox ();
			Assert.AreEqual ("", mtb.SelectedText, "#S1");
			mtb.Text = "abc";
			Assert.AreEqual ("", mtb.SelectedText, "#S2");
			mtb.SelectAll ();
			Assert.AreEqual ("abc", mtb.SelectedText, "#S3");
			mtb.Dispose ();
		}