Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Webbrowser Control in VB.NET Windows Application

Avatar of C Williams
C WilliamsFlag for United States of America asked on
Visual Basic Classic
10 Comments1 Solution260 ViewsLast Modified:
I have a windows application where a webbrowser is embedded in a tabbed control...when the application starts the webbrowser shows a default graph from the web which is sized perfectly within the frame.  But if I update the webbrowser with a new graph, the size of the webpage is larger than the frame...presenting the user with scroll bars.  

How do I get the web page to fit in the window, as it was when the application started?

Below are some of the options that I've tried.

Any help would be much appreciated.

Public Sub graphUpdate()
        Dim myTicker = txtTicker.Text
        Dim myAddressDaily = ConfigurationManager.AppSettings("graph1Day") & myTicker
        Dim myAddressWeekly = ConfigurationManager.AppSettings("graph1Week") & myTicker
        Dim myAddressYearly = ConfigurationManager.AppSettings("graph1Year") & myTicker

        txtTicker.Text = UCase(txtTicker.Text)

        txtHistory.Text = myTicker
        'Me.browserDaily.Dock = DockStyle.None
        'Me.browserDaily.Dock = DockStyle.Fill
        'Me.browserDaily.SetBounds(0, 0, 417, 220)
        'Me.browserDaily.MaximumSize() = "417"
        'Me.browserDaily.Top = 0
        'Me.browserDaily.Height = 200
        'Me.browserDaily.Width = 417
        'Me.browserDaily.Document.Body.ScrollLeft = 0

        formParent.ToolStripStatusLabel.Text = "Graphs refreshed...Ready"
    End Sub
Avatar of C Williams
C WilliamsFlag of United States of America imageDBA

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers