Click to See Complete Forum and Search --> : 'nother newbie question...


gee_wally
October 18th, 2002, 02:21 PM
Maybe this is just some kind of .NET weirdness, but the other day, I couldn't get the following function to work:

void Link_Clicked (Object* Sender, LinkClickedEventArgs* e)
{System::Diagnostics::Process::Start(e->LinkText);}

I had to use one of the other four overloads for Process::Start:

void Link_Clicked (Object* Sender, LinkClickedEventArgs* e)
{System::Diagnostics::Process::Start("IExplore.exe",e->LinkText);}

which obviously only works for IE.

I went back today and tried the first overload with just the LinkText just to see what exception this caused, and I'll be damned if it didn't start working! What gives? Why would this function suddenly start working?