Is there a way to get a Message from a website(like copy it), then have it show up in a textbox? If, so can you provide an example?
GAME -5 Junior Poster
Recommended Answers
Jump to PostYou can use WebRequest.
Here's an example:
Add reference: "using System.Net;"
WebRequest request = WebRequest.Create("http://www.google.com"); WebResponse response = request.GetResponse(); System.IO.StreamReader reader = new System.IO.StreamReader(response.GetResponseStream()); textBox1.Text = reader.ReadToEnd();
Jump to PostYou will have to use Regular Expressions.
This will help:
http://stackoverflow.com/questions/299942/regex-matching-html-tags-and-extracting-text
Thanks
All 5 Replies
kvprajapati 1,826 Posting Genius Team Colleague
farooqaaa 48 Enthusiast
GAME -5 Junior Poster
farooqaaa 48 Enthusiast
jakemdrew 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.