Skip to content

How to access form element in c#

Bharu Shakthi

Asked Jun 30, 2015, 2:02 AM EDT2 answers
Share
LinkedInX
hi everyone,
                     i have to develop a application to autofill username and password. for that i have to access the outlook form fields in c# . can i do this . please tell me how to do it.                                                                                                                                                                                                                                                                           
 
thank you 

2 Answers

Know the answer? Post it. Somebody with the same question will find it here.

  • +1
    You can use design code:
    this.textbox1.Text = "autofilled";

     
    or in code-behind:
    Code
    public Form1()
    {
    InitializeComponent();
    textbox1.Text = "autofilled";
    
    }
    +1
  • 0
    but i want to take the outlook credentials in c# exe. can i do that???
     
    I want to take the fields only. no values of those fields. 
    0