There are two WebBrowser in the first load html structure

<ul> <a href"..."><li>1 пункт</li></a> <a href"..."><li>2 пункт</li></a> <a href"..."><li>3 пункт</li></a> </ul> 

And there is a second WebBrowser in which, when you click on an item in the first WebBrowser, the file to which the item link leads will be displayed

Something like this:

enter image description here

  • why bother html and webbrowser? - 4per
  • Customer -_- like this - Andrew
  • It resembles the functionality of Microsoft Compiled HTML Help, *.chm files. - Alex Krass

1 answer 1

Everything was easier nowhere

  private: System::Void webBrowser1_DocumentCompleted(System::Object^ sender, System::Windows::Forms::WebBrowserDocumentCompletedEventArgs^ e) { webBrowser1->Document->Body->MouseDown += gcnew HtmlElementEventHandler(this, &Form1::Document_Click); } private: void Document_Click(System::Object ^ sender,System::Windows::Forms::HtmlElementEventArgs ^ e) { label1->Text = webBrowser1->Document->GetElementFromPoint(e->ClientMousePosition)->GetAttribute("href"); //webBrowser1->Document->GetElementFromPoint(e->ClientMousePosition); }