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 Post>so can you provide an example?
You can use HttpWebRequest class or WebBrowser control.
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();
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.