C++\CLR Visual Studio 2012 Windows forms application: Get Element By Id From WebBrowser

hi, i'm a beginner of the C++\CLR, what's wrong with my code?

private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {

this->Text = webBrowser1->Document->GetElementsByTagName("keywords")->ToString;

I'm fairly sure this forum isn't really for C++/CLI, so in the future you might want to consult a forum that specifically deals with it instead.

Anywho, you're just missing the parenthesis for "ToString()"
Last edited on
Topic archived. No new replies allowed.