By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,894 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,894 IT Pros & Developers. It's quick & easy.

MDI Webbrowser...

P: n/a
Hi,

I'm creating a MDI application that has two child forms. One has the
linklabels that would control the 2nd child form. The 2nd child form
has a webbrowser.

How do I make the webbrowser on form2 navigate to a specific url when
the linklabel on form1 is clicked?

System: Visual Studio 2005 - C#

Thanks,
S. Cole

Sep 24 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can do it one of two ways. First, you could have the first form
have a reference to the second form/web browser, and call the navigate
method directly.

The second way you could do it is have a method on your main form that
is called by form1 when a link is clicked with the link information. Then,
the second form would subscribe to the event that is fired, and react
accordingly.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<st*********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi,

I'm creating a MDI application that has two child forms. One has the
linklabels that would control the 2nd child form. The 2nd child form
has a webbrowser.

How do I make the webbrowser on form2 navigate to a specific url when
the linklabel on form1 is clicked?

System: Visual Studio 2005 - C#

Thanks,
S. Cole

Sep 24 '06 #2

P: n/a
Cool Thanks. Can you provide example code? I'm very new to C#
programming and understand what you suggest, but not sure how to
implement it yet.

Thanks,
S. Cole

Nicholas Paldino [.NET/C# MVP] wrote:
You can do it one of two ways. First, you could have the first form
have a reference to the second form/web browser, and call the navigate
method directly.

The second way you could do it is have a method on your main form that
is called by form1 when a link is clicked with the link information. Then,
the second form would subscribe to the event that is fired, and react
accordingly.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<st*********@gmail.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Hi,

I'm creating a MDI application that has two child forms. One has the
linklabels that would control the 2nd child form. The 2nd child form
has a webbrowser.

How do I make the webbrowser on form2 navigate to a specific url when
the linklabel on form1 is clicked?

System: Visual Studio 2005 - C#

Thanks,
S. Cole
Sep 24 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.