TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Jerry Fike
NA
107
0
Starting Default Browser with a Local File from a C# WFA app
Jan 21 2017 1:17 PM
I've been trying to make an application I'm working on launch my default browser and load a local help file. The code I'm using is:
string target = @"timers.htm";
try
{
System.Diagnostics.Process.Start(target);
}
catch
(
System.ComponentModel.Win32Exception noBrowser)
{
if (noBrowser.ErrorCode == -2147467259)
MessageBox.Show(noBrowser.Message);
}
catch (System.Exception other)
{
MessageBox.Show(other.Message);
}
This works fine if I use IE or Edge as my default browser, but I really want to use Chrome. But with Chrome set as the default browser, it launches but gives me a "file not found" error.
I suspect I'm missing something simple here but can't seem to track it down. Can anyone help me with this?
Thanks, Jerry
Reply
Answers (
2
)
i want to print two windows forms in a single a3 paper
Visual Studio 2013 Login form SQL with phpmyadmin