[Mono-bugs] [Bug 410709] New: System.Windows.Forms. LinkLabel LinkArea behaves different compared to .Net

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 20 04:16:53 EDT 2008


           Summary: System.Windows.Forms.LinkLabel LinkArea behaves
                    different compared to .Net
           Product: Mono: Class Libraries
           Version: SVN
          Platform: All
               URL: http://www.zonefivesoftware.com/SportTracks/Forums/viewt
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: offer at zingo.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: Third Party Developer/Partner

System.Windows.Forms.LinkLabel LinkArea behaves different compared to .Net

In one program I tried in mono called SportTracks 
( avalible on [1] )

It uses 
two times and the second time the first set is still avalible.
It calls 
fragment1: with start 3 lenght 3
fragment2: with start 3 lenght 19

later it CheckLinks() mono detect this and bails out, the same code 
works under .Net After some investigation (with the help of the author of
it was found out that


should delete the previus entered set but in mono every set is put into the
list of fragments. If one reads M$ info at [2] it is kind of non spesific of
what it means here:
If you only need to add a single hyperlink to the text of the control, you can
use the LinkArea property of the LinkLabel. This property accepts a LinkArea
that defines the location of the hyperlink within the control's text. When a
hyperlink is specified using the LinkArea property, the link area is then added
to the LinkLabel..::.LinkCollection in the same manner as adding the link using
the Add method of the LinkLabel..::.LinkCollection.

The term of single hyperlink but set two times is not defined in a clear way,
anyway mono and .Net behaves differently if this is that .Net do not detect the
overlapping or if .Net deletes the first fragment when it is set again I do not

If anyone want to check to start SporTrack you get the problem during startup
so it is easy to verify. Some anylysis is also avalible in the sporttrack
mailing list [3]

[1] http://www.zonefivesoftware.com/SportTracks 
[2] http://msdn.microsoft.com/en-us/library/system.windows.forms.linkarea.aspx 

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list