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!