how to add images in checkedlist box in C# as item./?
yogesh
how to add images in checkedlist box in C# as item./?
yogesh
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 think, you have not read my message carefully. ok i am explaining again, if you are going to create account in facebook.com, captcha will come there. if you see the page source then you can not get any specifice captcha url, you only get one link, and this links calls java script. whenever java script runs captcha url comes to webpage.
yogesh
i dont want to create captcha using javascript. i just told that captcha link comes when javascript runs.
yogesh
modified on Saturday, October 24, 2009 1:49 PM
I need to be able to place the captcha image into a picturebox on my form, the reason being that I need to zoom the captcha image for the visualy impaired users. It appears to be such a simple task, just take the image from the web page and put it into a picturebox but it is turning out to be not so simple. i have WebBrowser control in form and for registration in one of site, i need captcha image in picture box. problem is that captcha image is generated by JavaScript, when java script runs then it gives url of captcha image. but every time when java script runs, captcha image goes change. i just want that captcha image which is on WebBrowser control current page. Any help would be greatly appreciated.
yogesh
How to change color of RibbonControl, i am using RibbonControl.dll.
yogesh
I want to capture screen in different ways. You can look at this reference software: http://www.techsmith.com/download/snagittrial.asp. I want to capture a screen, for example, if there is any web page and if I move mouse on that web page then program should be able to identify some parts as rectangles on web page and create a rectangular boundary over selected part.When the user clicks it will be captured automatically. For capturing simple screen I have written code in C#. my questions is that how to identify some rectangle area through program to capture.
yogesh
Could you suggest me any third party way? i have searched on google but did not get useful yet.
yogesh
Does dotnet provide video converter APIs??? Can anyone help me out??
yogesh
Hi, i am trying to make a simple bot using IE automation. i just want to register in one site using my program, but it needs captcha, i am using decaptcher.com for it. it is ok. after web page openning, in view source of page i get one captcha link. whenever i save this image using c# program, it just redirect and save image is changed as in browser. i think you can understand what i am saying. Is there any way to save browser image without redirecting? if i just right click in browser, manually then i am able to save image same as. Any one can help me out?? thanks!
yogesh
i could not open the link given...
yogesh
Hi, I am suffering from one problem since few weeks. Could you please try to help me? I am a C# programmer, i have client needs: He have 10 computers in office (VPN connection). one computer is server and all are clients. server computer has one folder it always updated time to time, i had to writer code to copy that folder from server computer. i made it and it works fine when i run that software in two system LAN connected. But VPN server needs user authentication. how can i connect to VPN server through C# program, this is my question. Hope nice to hear from you! Thanks!
yogesh
HTMLDoc = (HTMLDocument)WebBrowser.Document; iHTMLCol = HTMLDoc.getElementsByTagName("input"); //type the username in the text box mshtml.HTMLElementEvents2_Event htmlElementEvents2_Event = null; foreach (IHTMLElement iHTMLEle in iHTMLCol) { try { strAttriName = iHTMLEle.getAttribute("id", 0).ToString(); if (strAttriName == "go") { if (iHTMLEle != null) { if (iHTMLEle is mshtml.HTMLButtonElement) { htmlElementEvents2_Event = (mshtml.HTMLElementEvents2_Event)iHTMLEle.onclick ; htmlElementEvents2_Event.onclick += new HTMLElementEvents2_onclickEventHandler(htmlElementEvents2_Event_onclick); } } } } catch { } } } See the code above. i have one button in my browser (intternetExplorer object), on that button click i wanted to call a method or event method. Could any buddy help me out it is argent. Thanks in advance!
yogesh
thanks..
yogesh
Hi, how can i add checkboxes in listbox?? i want checkbox in front of every item in list box. Thanks in advance!
yogesh
public string RemoteConnection(string targethost, string targetusername, string targetpassword) { StringBuilder result = new StringBuilder(); try { ConnectionOptions Conn = new ConnectionOptions(); if (targethost != Environment.MachineName) //WMI errors if creds given for localhost { Conn.Username = targetusername; //can be null Conn.Password = targetpassword; //can be null } ManagementScope scope = new ManagementScope(targethost , Conn); scope.Connect(); return result.ToString(); } catch { return "fail"; } }
yogesh
Hi, I am developing program to connect to the windows server 2003. i want to copy some folders from server PC to client PC through my program. if i do this without program then windows pops up for username and password to connect to the server. But in my program how can i handle pop up or how can i connect to the server? Thanks for reply.
yogesh
Hi, i am using IE objects. i am getting one IHTMLElement "textarea". manually in browser if we click on this text area then some javascript code runs. and i get captch. if i see the page source then i am getting... likke this... ; so what i have to do is, i have to click on textarea by IE automation using microsoft.mstml classes. Thanks for reply..... <div class="ForumSig">yogesh</div></x-turndown>
could u give me code for that????
yogesh
yes that is a text file. whenever new data comes to file, i want to perform some action through window service. please help me sir,
yogesh