C# |
C# Return Type
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.

Danatas GerviRank #4,152 · 361 reputationPosted Aug 3, 2009, 12:18 AM EDT
Only constructor of class should not return any result.
jacob Kukuk13 reputationPosted Aug 3, 2009, 12:39 AM EDT
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 GerviRank #4,152 · 361 reputationPosted Aug 3, 2009, 2:36 AM EDT
What type has this property (of field) .Document ?
Are you sure, that it can be an instance of HtmlDocument?
jacob Kukuk13 reputationPosted Aug 3, 2009, 10:19 PM EDT
Danatas GerviRank #4,152 · 361 reputationPosted Aug 4, 2009, 4:48 AM EDT
There is no magic. If an object is not works as you need - it is garantee, that this object was not correctly inited.
jacob Kukuk13 reputationPosted Aug 4, 2009, 11:40 AM EDT
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 GerviRank #4,152 · 361 reputationPosted Aug 5, 2009, 1:48 AM EDT
and in class
So you can use this classin any function inside
FormSimplLogin....jacob Kukuk13 reputationPosted Aug 5, 2009, 2:27 AM EDT
jacob Kukuk13 reputationPosted Aug 12, 2009, 3:48 PM EDT
Master BillaRank #2,229 · 630 reputationPosted Aug 12, 2009, 6:39 PM EDT
yes i have look your conversion, could you post your complete code here , then it will easy to help
thank you
jacob Kukuk13 reputationPosted Aug 12, 2009, 8:57 PM EDT