View previous topic :: View next topic |
Author |
Message |
VisualCSharp
Joined: 08 Sep 2007 Posts: 9
|
Posted: Sat Sep 08, 2007 10:05 pm Post subject: BUG: Using a URL moniker when calling LicenseInstallForm |
|
|
Using a URL moniker in the URL parameter (e.g., http://www.mysite.com instead of just www.mysite.com, as is used in the examples) causes IE to attempt to navigate to http://http/.
LicenseInstallForm licenseForm = new LicenseInstallForm();
licenseForm.ShowDialog("My Software", "http://www.mysite.com", LicensePath); |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Sun Sep 09, 2007 10:56 pm Post subject: |
|
|
This is actually an ILS not an IPN.NET issue (so I've moved the topic). It isn't really a bug - because that is what the form was designed to do (to allow you not to specify the http moniker). However if you want different behaviour then it is easy to change. You can either modify the InstallForm code directly (if you have purchased ILS and received the source code) or you can derive a new class from InstallForm and override the linkLabel_LinkClicked method as follows:
Code: | protected overrides void linkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
string address = linkLabel.Text;
linkLabel.LinkVisited = true;
try
{
System.Diagnostics.Process.Start(address);
}
catch {}
} |
We will look at modifying the base code so that it allows either format. _________________ Infralution Support
Last edited by Infralution on Mon Sep 10, 2007 1:47 am; edited 1 time in total |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Sep 10, 2007 1:47 am Post subject: |
|
|
Your timing was good - we were able to get this small change into the latest version (3.5.0) - released today. This means you won't have to change the code or override the method to get the behaviour you want. _________________ Infralution Support |
|
Back to top |
|
|
VisualCSharp
Joined: 08 Sep 2007 Posts: 9
|
Posted: Mon Sep 10, 2007 3:30 am Post subject: |
|
|
Yeah, I had figured out after submitting this problem that I could derive the form class. My solution was to remove the underlying delegate assigned to LinkClick and substitute my own. |
|
Back to top |
|
|
|