Add webbroswer control into your form and read the source of yourdomain.com and find the html element of username, password and login button and replace with above code!