Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
HI!
i have a windows form application it has a button. what i want is that i click on that button i copy div tag from a webpage and save it as an image in my local drive. please tell me how to do that.
Thanks
Posted

1 solution

You can try with WebBrowser control and regularexpressions

An example to access the contents of the web page is given here.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.document.aspx[^]

After getting the contents of the webpage, search it with regular expressions using the Regex class.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900