public class Global_Proccess { public static proccess() { tabControl1.SelectTab(1); HtmlDocument mycspdoc = mycsp_browse.Document; HtmlElement Username_Enter = mycspdoc.GetElementById("userid"); Username_Enter.Focus(); Username_Enter.SetAttribute("value", usernm_g); HtmlElement Password_Enter = mycspdoc.GetElementById("password"); Password_Enter.Focus(); Password_Enter.SetAttribute("value", passwd_g); return null; } public static void Main(string usernm, string passwd) { usernm_g = usernm; passwd_g = passwd; proccess(); } }