textbox c#


SUBMITTED BY: menamagice

DATE: Aug. 9, 2017, 1:45 a.m.

FORMAT: ANTLR With C# Target

SIZE: 262 Bytes

HITS: 219

  1. In C#, unlike java we do not have to use any method. TextBox property Text is used to get or set its text.
  2. Get
  3. string username = txtusername.Text;
  4. string password = txtpassword.Text;
  5. Set
  6. txtusername.Text = "my_username";
  7. txtpassword.Text = "12345";

comments powered by Disqus