?
Solved

How can i open a web page from vb net console

Posted on 2009-12-16
8
Medium Priority
?
431 Views
Last Modified: 2013-12-26
I want to auto open a web page when my vb net console is started making it the active window without the location bar etc to fill the screen. Its part of a dispay screen programe i am setting up the rest of the console will then continue to run in the background.
0
Comment
Question by:9772885
  • 5
  • 3
8 Comments
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 26070876
Process.Start("iexplore", @"-k YOUR_WEBPAGE");
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 26070883
for example if your web page is saved under c:\temp\webpage.mht, use the following code:
Process.Start("iexplore", @"-k c:\temp\webpage.mht");
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 26070887
u can obvisouly use link rather than saved webpage:

Process.Start("iexplore", @"-k www.nba.com");
0
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.

 

Author Comment

by:9772885
ID: 26070905
i seem to be getting an issue with the @ sign 'Expression Expected'?
0
 
LVL 42

Expert Comment

by:Meir Rivkin
ID: 26070983
remove the @, i thought it's C#
0
 

Author Comment

by:9772885
ID: 26094058
I have tried the following however i got the following error message

in function 'int main()'
'Process' undeclared  (first use function)
(each undeclared identifer is reported only once for each function it appears in)


int main ()
{
Process.Start("iexplore", "-k http://servername/path/mypage.aspx?DisplayId=2");
}
0
 
LVL 42

Accepted Solution

by:
Meir Rivkin earned 2000 total points
ID: 26094134
System.Diagnostics.Process.Start("iexplore", "-k http://servername/path/mypage.aspx?DisplayId=2");
0
 

Author Closing Comment

by:9772885
ID: 31667009
thank you very much
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses
Course of the Month15 days, 14 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