Having issues with a error message of Method must have a return type. The script below is the script where it fails at. I looked for return types and tryed return null but that dosent work :-/ So since my head hurts now any suggestions? TY in advance. The red is where it errors out at.
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(); } }
|
jacob KukukPosted Aug 13, 2009, 12:57 AM
Master BillaPosted Aug 12, 2009, 10:39 PM
yes i have look your conversion, could you post your complete code here , then it will easy to help
thank you
jacob KukukPosted Aug 12, 2009, 7:48 PM
jacob KukukPosted Aug 5, 2009, 6:27 AM
Danatas GerviPosted Aug 5, 2009, 5:48 AM
and in class
So you can use this classin any function inside
FormSimplLogin....jacob KukukPosted Aug 4, 2009, 3:40 PM
the method posted with that class dosent, so is there like a way i'm supposed to like referance the item inside of the class to make it find the web browser?
Danatas GerviPosted Aug 4, 2009, 8:48 AM
There is no magic. If an object is not works as you need - it is garantee, that this object was not correctly inited.
jacob KukukPosted Aug 4, 2009, 2:19 AM
Danatas GerviPosted Aug 3, 2009, 6:36 AM
What type has this property (of field) .Document ?
Are you sure, that it can be an instance of HtmlDocument?
jacob KukukPosted Aug 3, 2009, 4:39 AM
tabControl1.SelectTab(1);
HtmlDocument mycspdoc = mycsp_browse.Document;
An object reference is required for the non-static field, method, or property. Its like there unable to see other items outside of the class.
Danatas GerviPosted Aug 3, 2009, 4:18 AM