Hi ,
I am in need of opening a new IE browser with an URL from my windows
form, coded in vb.net.
I tried with the following code.
Dim psi As New ProcessStartInf o
psi.FileName = "iexplore"
psi.Arguments = "http://www.google.com"
Process.Start(p si)
it worked initially. But now I recieve the error
"The application failed to initialize properly (0xc000007b)."
It works for anyother appication like notepad, mspaint, winword etc...
but shows error for iexplore alone!
Please help me in achieving this...
Regards
Vignesh
--
Message posted via http://www.dotnetmonster.com 8 2810
Vigneshwaran,
Default browser
\\\
Dim p As New Process
Dim pi As New ProcessStartInf o
pi.FileName = "http://www.google.com"
p.StartInfo = pi
p.Start()
///
Hi Cor,
Thanks for ur response again.
I tried as u said, But still recieving the following error
An unhandled exception of type 'System.Compone ntModel.Win32Ex ception'
occurred in system.dll
Additional information: The system cannot find the file specified
Any suggestions please?
Thanks,
Vignesh
--
Message posted via http://www.dotnetmonster.com
Vignashwaran,
I tried it on a new form, it shows a browser with a Google page.
Therefore, why not try it in a new project.
cor
Thanks Cor,
It worked for me too in a new project!
But what I need is to add a button in a form of an existing application
cliking which a new browser should start with a given URL.
Any suggessions for this scenario please...
Regards
Vignesh
--
Message posted via http://www.dotnetmonster.com
Vignesh,
This is standard, put a button on your form, click on that there will be a
buttonclick event created and in that you place this code.
I have the idea that I miss something from the problem
Cor
Hi Cor,
Thats where iam getting error.
If i write the same code in the button click event, iam getting the error
that i mentioned so far...
Thanks,
Vignesh
--
Message posted via http://www.dotnetmonster.com
Vignesh,
Like this,
\\\
Private Sub Button1_Click(B yVal sender As System.Object, _
ByVal e As System.EventArg s) Handles Button1.Click
Dim p As New Process
Dim pi As New ProcessStartInf o
pi.FileName = "http://www.google.com"
p.StartInfo = pi
p.Start()
End Sub
///
This I cutted from a program that I tried, therefore you understand probably
already that it showed a browser.
I hope this helps,
Cor
"Vigneshwar an G via DotNetMonster.c om" <fo***@DotNetMo nster.com> schrieb: I am in need of opening a new IE browser with an URL from my windows form, coded in vb.net. I tried with the following code. Dim psi As New ProcessStartInf o psi.FileName = "iexplore" psi.Arguments = "http://www.google.com" Process.Start(p si)
it worked initially. But now I recieve the error "The application failed to initialize properly (0xc000007b)." It works for anyother appication like notepad, mspaint, winword etc... but shows error for iexplore alone!
Any reason for opening the file in IE explicitly? If there is no certain
reason for doing that, I'd let the OS pick the default browser to open the
document:
Opening files, applications, Web documents, and the mail client
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=openfileapp webpage&lang=en >
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Bob Murdoch |
last post by:
I've got an intranet application that presents a list of files in sort of a
'central repository' web page. Each file is an href in the form <a
href=file://server/share/path/filename.ext>.
When the user clicks on an excel file, it is opening within the browser,
which unforntuntely confuses the heck out of them because the usual
Print/Print Preview menu options are not available. I would like the user
to be presented with the typical...
|
by: Clinton Goff |
last post by:
I am attempting to write a javascript app that will open a second browser
window, load a url, such as www.google.com (foreign url) and perform a
<File-Save As> function on that window. I am able to do this with opening a
second window that loads a local file, but I get an Access Denied error when
I attempt this with a different website. Is there not a command in
javascript that will allow me to open a webpage and perform this function?
...
|
by: Carlos Andr?s |
last post by:
Hi everybody.
I've got a problem. I'd like to avoid opening a new window when you
have pressed the shift key and you click in the left button of the
mouse. I've tried the next solution, in the body of the page I put the
next code:
<BODY onkeydown='notOpenNewWindow();'>
|
by: D. Alvarado |
last post by:
Hello,
I am trying to open a window containing an image and I would like
the image to be flush against the window -- i.e. have no padding or
border. Can I make this happen with a single call to a window.open
function? I would prefer not to create a separate HTML page. So far
all I have is the basic
var cwin = window.open('images/KJV-THANKS.gif',
'Thanks', 'width=243,height=420,');
cwin.focus();
|
by: Brad |
last post by:
In several aspx applications I export crytal reports to pdf, xls and doc
files and then the aspx page writes the selected export file to the client
browser. This all works with one small quirk: When I run any of the web
apps on my workstations iis website, the pdf download always produces the
"File Download" dialog, even though I have Confirm after Download turned
off. When I select to Open the file from this dialog the file opens in...
| |
by: Kenneth P |
last post by:
Hi,
It's rather common today, to see a PDF opening within a new Internet page.
But how is it done in ASP.NET, VS2003?
I'd rather use it as a way to invoice electronically. You email your
customer without the PDF-file as an attachment to the mail. Many company's
exchange servers and other filter out PDF attachments. You never know in
advance and after fourteen days you wonder why the 10-days invoice isn't
|
by: Greg Smith |
last post by:
Is there a way to control the opening size of the browser?
|
by: celoftis |
last post by:
BACKGROUND:
I have some PPT slides that have been converted to HTM (ensuring that
the show slide animations while browsing checkbox is checked). The
original HTM slides have custom animations to allow movie (wmv)
playback on mouse click. (All animations have been verified to work
when viewing slides in ppt.) Further, I have ensured that the converted
HTM file(s) contain only relative file paths.
SITUATION #1
When I open the converted...
|
by: emailus |
last post by:
I am webmaster for the domain <www.alpha1.org.au>.
Not being an expert in html, I take advantage of my domain
Registrant's web building tool, 'Instant Website'. This tool is
provided as part of the fee I pay for web hosting.
'Instant Website' provides the option of having your opening page as a
Flash Page, which you'll see if you visit <www.alpha1.org.au>. Well,
you'll see it if you visit from a Windows machine. For some reason,
when...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |