|
-
July 27th, 2006, 01:11 PM
#1
Set WebBrowser.DocumentText doesn't do anything
Hello!
I just started with .net. I made a new C++-CLR-Windows-Forms-Applicationin VS 2005, which has one simple form by default. I added a WebBrowser-Control to it.
Now I just want to set the html-code inside the WebBrowser-Control. I found the DocumentText-Property and set it:
Code:
Form1(void)
{
InitializeComponent();
//
this->webBrowser1->DocumentText = L"<html><body>It works!</body></html>";
//
}
Ok, the program runs, but it shows nothing inside webBrowser1. I had a look at the sourcecode via the popup-menu of the WebBrowser, it just says "<HTML></HTML>".
What am I doing wrong?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|