Microsoft Visual Studio C# Error Cannot implicitly convert type 'System.Windows.Forms.RichTextBox' to 'string'
8 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!