Skip to content

Linklabel fires LinkClicked event when enabled=false #528

Description

@itg-assistant

mitch stephens asked 2017-01-09 15:41:00 UTC

Hi guys,

There seems to be a bug in the LinkLabel. If you set enabled to false, the link is still active.

here is a minimal program showing the behavior

public Window1()
{
InitializeComponent();
}

private void button1_Click(object sender, EventArgs e)
{
this.linkLabel1.Enabled = false;
}

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
MessageBox.Show("The Linklabel.enabled = " + this.linkLabel1.Enabled.ToString());
}

http://screencast.com/t/zDQfvuJPaiTe

Thanks

Mitch

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions