MDI Webbrowser...

S

staceyccole

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 
S

staceyccole

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
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]
- (e-mail address removed)

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
 

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

Similar Threads

MDI one Child instance. 5
MDI Application 1
MDI and Reflection 2
mdi child detach reattach problem 2
MDI Problem 3
Question on MDIchild forms 6
MDI Question 1
MDI Repaint Problem 6

Top