Solved

How do I control IE from VB.NET ?

Posted on 2004-10-25
258 Views
Last Modified: 2011-10-03
HEre is my code so far that does not work.

  Dim ie As Object
        ie = CreateObject("InternetExplorer.Application")
        ie.Navigate("www.shimmerstudios.com")

I get errors when trying to run this code.
0
Question by:dunnieboy
    7 Comments
     
    LVL 7

    Accepted Solution

    by:
    Hi,
    Please see this question http://www.experts-exchange.com/Programming/Q_20905712.html

    Hope it helps you. Please mention the error you are getting....

    Sukumar
    0
     
    LVL 10

    Expert Comment

    by:prakash_prk
    Hi dunnieboy

    what you exactly want to do.?
    Are you wnat to use the browser control ?
    Are you try to add the browser functionality to your application ?

    Regards
    Prakash


    0
     
    LVL 11

    Expert Comment

    by:ajaikumarr
    0
     
    LVL 18

    Expert Comment

    by:armoghan
    You just need to add the MSHTML object in your form and you have the browser embed in your application
    see this application. Its a clone of IE

    http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1953&lngWId=10

    0
     
    LVL 18

    Assisted Solution

    by:armoghan
    if you want to run it independently from OS use this
     Try
                Dim myProcessinfo As ProcessStartInfo = New ProcessStartInfo("iexplore")
                myProcessinfo.Arguments = "http://www.yahoo.com"
                Dim myProcess As Process = System.Diagnostics.Process.Start(myProcessinfo)
            Catch ex As Exception
                Console.WriteLine(ex.StackTrace)
            End Try
    0
     

    Expert Comment

    by:1209
    Hi,

    as morgan said use process.start(hyperlink)...this will launch the page in the default html browser
    0
     
    LVL 18

    Expert Comment

    by:armoghan
    split
    sukumar_diya , armoghan
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    846 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now