web browser control

  • Thread starter Thread starter raineel
  • Start date Start date
R

raineel

Hi All

I have a Form A that has a Label and I have a Form B that has a web browser
control on the form. is there a way i can click on the label in form A which
would open my url in the form B. If yes what code do i write is on the
onclick event of the label in form A

Any help is appreciated

Thank you

Raineel
 
Assuming that form B is open and the the label has the URL you want to go to
as its caption, from the Click event in the label of form A one line of
code.

forms!B.form.NameOfYourWebBrowserControl.Navigate YourLabelControl.Caption
 
Back
Top