web browser control

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
 
R

Ron Weiner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top