473,383 Members | 1,877 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to run an internet adress ????

Dear all,

I have a menu item in my application on which when a click is executed
should open internet explorer and jum to the predifined adress.
Doing this generated an execption error like "file not foud", sound strange..

I launch it in the following way :

Dim sWebLink As String
sWebLink = "http://miscrosoft.com"

myProcessStartInfo = New ProcessStartInfo(sWebLink)
myProcess = New Process
myProcess.StartInfo = myProcessStartInfo
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal
myProcess.Start(myProcess.StartInfo)

What is wrong on what I am doing ?

regards
serge
Nov 22 '05 #1
1 1090
> I have a menu item in my application on which when a click is executed
should open internet explorer and jum to the predifined adress.
Doing this generated an execption error like "file not foud", sound strange..


I see a couple of things.

First, use "http://www.miscrosoft.com" instead of "http://miscrosoft.com"

Second, you code has mixed usage of "myProcessStartInfo" and
"myProcess.StartInfo". Did you Dim myProcessStartInfo somewhere?
To launch your link, all you really need is
Diagnostics.Process.Start("iexplore.exe", sWebLink)
which will launch a new window. Also,
Diagnostics.Process.Start(sWebLink)
but this code usually re-uses an existing open window for the link.

Nov 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: John Lauwers | last post by:
Hi, Can I download a file automatically from internet, Just type the internet adress in a textbox and in another textbox the pad where it will be saved and then push a button so the downloaded...
1
by: serge calderara | last post by:
Dear all, I have a menu item in my application on which when a click is executed should open internet explorer and jum to the predifined adress. Doing this generated an execption error like...
11
by: mwebel | last post by:
Hi, i had this problem before (posted here and solved it then) now i have the same problem but more complicated and general... basically i want to store the adress of a istream in a char* among...
3
Sagittarius
by: Sagittarius | last post by:
Hi there. I have a problem concerning an UDP socket in C++ (Winsock). The next paragraphs is merely to explain the system I am working on. If U want to skip it, I have marked the question in...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.