Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

rob64464

Opening *.hlp and web pages (C#)

This topic is 5458 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, How do you opena web site in C#. I have a button then when clicked it loads a web page and sends it to them. Also how do you open a *.hlp file when another button is pressed? Cheers, Rob

Share this post


Link to post
Share on other sites
Advertisement
System.Diagnostics.Process.Start("http://www.yahoo.co.uk");

An unhandled exception of type ''System.ComponentModel.Win32Exception'' occurred in system.dll

Additional information: The requested section was not present in the activation context


Why do i get that error?


Cheers,
Rob

Share this post


Link to post
Share on other sites
The following Works For Me(TM):

using System;

namespace ConsoleApplication3
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
System.Diagnostics.Process.Start( "http://www.yahoo.co.uk" );
}
}
}

If it doesn''t for you, then I suspect it''s a general configuration issue with your computer. Can you try ShellExecuteEx in a C++ program and see if the same thing happens?

--
AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
[Project site] [Blog] [RSS] [Browse the source] [IRC channel]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!