Hello all,
I'm in the process of making a program in Visual Basic 2010 where the user can click a button adding another webbrowser control to the form. How would you accomplish this and how would you go about "Dynamically" expanding the form...
EG. how would you go about adding a webbrowser control to the form when a button is clicked and dynamically expanding it(eg. whole form has one webwrowser control until button is clicked when another is added and the form now has to split 50-50)?

thanks advance!!!

Recommended Answers

All 2 Replies

I think that you can do this:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Me.Width = 640 'or any value you want
        Me.Height = 480 'or any value you want
    End Sub

As for adding a WebBrowser to the Form, check out this thread.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.