using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; using System.IO; namespace WindowsFormsApplication1 { public partial class Form1 : Form { private String webText; public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { WebClient web = new WebClient(); System.IO.Stream stream = web.OpenRead("https://de.wikipedia.org"); using (System.IO.StreamReader reader = new System.IO.StreamReader(stream)) { webText = reader.ReadToEnd(); } stream.Close(); richTextBox1.Text = webText; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)