Microsoft Visual Studio C# Error Cannot implicitly convert type 'System.Windows.Forms.RichTextBox' to 'string'
8 次查看(过去 30 天)
显示 更早的评论
I want to make a HTML editor in C# in Visual Studio with two forms.One form contains the web browser and the other the text box.I got the following error in code: Cannot implicitly convert type 'System.Windows.Forms.RichTextBox' to 'string' . Form1 is the form where is located the richtextbox.
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
Form1 m = new Form1();
webBrowser1.DocumentText = m.codeBox1;
}
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 String Parsing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!