Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

BUG: Using a URL moniker when calling LicenseInstallForm

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support
View previous topic :: View next topic  
Author Message
VisualCSharp



Joined: 08 Sep 2007
Posts: 9

PostPosted: Sat Sep 08, 2007 10:05 pm    Post subject: BUG: Using a URL moniker when calling LicenseInstallForm Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sun Sep 09, 2007 10:56 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Sep 10, 2007 1:47 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
VisualCSharp



Joined: 08 Sep 2007
Posts: 9

PostPosted: Mon Sep 10, 2007 3:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Licensing Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group