Hey everyone...
I need some help...please...
Using the web browser control, I want to navigate to a URL and move my mouse over ANY element on that website and have a focus rectangle display around it...
I've written a whole bunch of code but none of it seems to work - but I want to believe that I'm close, for example
private: System::Void Document_MouseOver(System::Object ^sender, System::EventArgs ^e){
elm = inspectorWB->Document->GetElementFromPoint(MousePosition);
float PenWidth = 5;
Pen ^Rect_Pen = gcnew Pen(Color::AliceBlue, PenWidth );
System::Drawing::Rectangle rect = elm->ClientRectangle;
Graphics ^Area = nullptr;
Area = Graphics::FromHwnd(inspectorWB->Handle);
Area->DrawRectangle(Rect_Pen, rect);
}
Can someone please let me know what it is I'm doing wrong