open and close url (window) in vb net

Posted on 2009-02-12
Medium Priority
Last Modified: 2012-05-06
Hi. Pretty new to VB Net, trying very hard, so please forgive my probably lightweight question.

In a VBNET program I have to open a URL. It's for executing a command (I am sending a SMS by opening the URL), so I would prefer it to be totally invisible.
The latter is probably impossible, but the alternative would be to minimize the window and to close the URL directly after opening it.

Meanwhile i learned that a url can be opened by :

Dim sURL As String = "http://gateway.silverstreet.nl/send.php?adsasdasda etc "
Dim Page As Syst System.Diagnostics.Process.Start(sURL)

But this would make the page to be full sized and remain open.

Could you guys help me out?
Question by:dave_new_to_VBNET
LVL 23

Expert Comment

ID: 23627596
You could try something like:

        Dim objWeb As Object
        objWeb = CreateObject("InternetExplorer.Application")
        Do While objWeb.Busy Or objWeb.readyState <> 4
        objWeb = Nothing

Open in new window


Accepted Solution

dave_new_to_VBNET earned 0 total points
ID: 23636536
Found it!!
Dim startInfo As New ProcessStartInfo("IExplore.exe")
        startInfo.CreateNoWindow = True
        startInfo.WindowStyle = 1 'hidden
        startInfo.Arguments = "http://gateway.silverstreet.nl/s..."

Open in new window


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month16 days, 5 hours left to enroll

850 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