Click here to Skip to main content
15,887,596 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can i run the open and save file codes in C# ??? Pin
OriginalGriff24-Oct-09 22:43
mveOriginalGriff24-Oct-09 22:43 
Questionhow to bind TreeView to hierarchical data (Recursive Queries) ? Pin
hdv21224-Oct-09 18:25
hdv21224-Oct-09 18:25 
QuestionAn array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 13:13
CaptainSeeSharp24-Oct-09 13:13 
AnswerRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 13:16
protectorChristian Graus24-Oct-09 13:16 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
CaptainSeeSharp24-Oct-09 13:30
CaptainSeeSharp24-Oct-09 13:30 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. PinPopular
Christian Graus24-Oct-09 14:12
protectorChristian Graus24-Oct-09 14:12 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Not Active24-Oct-09 15:47
mentorNot Active24-Oct-09 15:47 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 23:24
protectorChristian Graus24-Oct-09 23:24 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 14:42
protectorChristian Graus24-Oct-09 14:42 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 16:01
CaptainSeeSharp24-Oct-09 16:01 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 23:23
protectorChristian Graus24-Oct-09 23:23 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
miss YY25-Oct-09 23:33
miss YY25-Oct-09 23:33 
Questioncaptcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 5:17
yogesh_softworld12324-Oct-09 5:17 
AnswerRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 7:24
professionalAbhishek Sur24-Oct-09 7:24 
GeneralRe: captcha image from WebBrowser into a picturebox [modified] Pin
yogesh_softworld12324-Oct-09 7:33
yogesh_softworld12324-Oct-09 7:33 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 7:38
professionalAbhishek Sur24-Oct-09 7:38 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 8:15
yogesh_softworld12324-Oct-09 8:15 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 9:10
professionalAbhishek Sur24-Oct-09 9:10 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 9:39
yogesh_softworld12324-Oct-09 9:39 
here is my code.

public void FacebookRegistration()
{
HTMLDoc = (mshtml.HTMLDocument)WBrowser.Document.DomDocument;
iHTMLCol = HTMLDoc.getElementsByTagName("input");
foreach (IHTMLElement iHTMLEle in iHTMLCol)
{
if (iHTMLEle.getAttribute("name", 0) != null)
{
strAttriName = iHTMLEle.getAttribute("name", 0).ToString();
if (strAttriName == "firstname")
{
iHTMLEle.setAttribute("value", FirstName, 0);
continue;
}
if (strAttriName == "lastname")
{
iHTMLEle.setAttribute("value", LastName, 0);
continue;
}
if (strAttriName == "reg_email__")
{
iHTMLEle.setAttribute("value", EmailID, 0);
continue;
}
if (strAttriName == "reg_passwd__")
{
string s = GetRandomString();
Random ran = new Random();
iHTMLEle.setAttribute("value", s+ran.Next(1111,9999), 0);
break;
}
}
}
iHTMLCol = HTMLDoc.getElementsByTagName("option");
foreach (IHTMLElement iHTMLEle in iHTMLCol)
{
try
{
if (iHTMLEle.innerText.Contains("Male"))
{
iHTMLEle.setAttribute("selected", "selected",0);
} if (iHTMLEle.innerText.Contains("Jun"))
{
iHTMLEle.setAttribute("selected", "selected", 0);
}
Random ran = new Random();
if (iHTMLEle.innerText.Contains("4"))
{
iHTMLEle.setAttribute("selected", "selected", 0);
}
Random ran1 = new Random();
if (iHTMLEle.innerText.Contains(ran1.Next(1920,1985).ToString()))
{
iHTMLEle.setAttribute("selected", "selected", 0);
}
}
catch { }
}
iHTMLCol = HTMLDoc.getElementsByTagName("input");
int i = 0;
foreach (IHTMLElement iHTMLEle in iHTMLCol)
{
string s = iHTMLEle.className;
if (iHTMLEle.className == "UIButton_Text" && iHTMLEle.getAttribute("value", 0).ToString() == "Sign Up")
{
if (i != 0)
{
iHTMLEle.click();
break;
}
i++;
}
}

private void WBrowser_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
if (CurrentSocial == "facebook")
{
FacebookRegistration();
}
}



in the registration page of facebook.com, there is captcha and if you go to page source then you will see only this:

yogesh
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Christian Graus24-Oct-09 10:18
protectorChristian Graus24-Oct-09 10:18 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 22:34
professionalAbhishek Sur24-Oct-09 22:34 
AnswerRe: captcha image from WebBrowser into a picturebox Pin
dan!sh 24-Oct-09 23:58
professional dan!sh 24-Oct-09 23:58 
Questioncolumn headers not showing Pin
Zap-Man24-Oct-09 4:45
Zap-Man24-Oct-09 4:45 
AnswerRe: column headers not showing Pin
Zap-Man24-Oct-09 4:54
Zap-Man24-Oct-09 4:54 
GeneralRe: column headers not showing Pin
Ravi Sant4-May-11 23:45
Ravi Sant4-May-11 23:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.