Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6371385
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:03:39+00:00 2026-05-25T01:03:39+00:00

Is it possible to change link without changing the name? ex: linllabeltext.link = http://mylink.com/;

  • 0

Is it possible to change link without changing the name?
ex:

linllabeltext.link = "http://mylink.com/";

doesn’t work

and this change the name

linklabeltext.test = "http://mylink.com/"

change the test

I have added this function at click

Process.Start(linklabetext.text);

how?

full code:

private void (......)
{
.....
var name = result.name;
.......
labelLink1.text = name;
}

private void labelLink1_click....
{
Process.Start(labelLink1.text);
}

but this code change the name of labelLink1 in a link es: http://mysate.com but the name of labelLink is Visit a Web Site

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:03:39+00:00Added an answer on May 25, 2026 at 1:03 am

    Take a look at the examples on MSDN. Specifically where they create the LinkLabel and set it’s link(s) and text:

    this.linkLabel1 = new System.Windows.Forms.LinkLabel();
    this.linkLabel1.Text = "Register Online.  Visit Microsoft.  Visit MSN.";
    if(this.linkLabel1.Text.Length >= 45)
    {
        this.linkLabel1.Links[0].LinkData = "Register";
        this.linkLabel1.Links.Add(24, 9, "www.microsoft.com");
        this.linkLabel1.Links.Add(42, 3, "www.msn.com");
        //  The second link is disabled and will appear as red.
        this.linkLabel1.Links[1].Enabled = false;
    }
    

    I’ve never actually used this control before, but it appears that you set the .Text to any string and then set the “links” to correspond to substrings within the .Text property.

    Edit: I just noticed that you’re also using the wrong event for clicking on the link. You don’t want to bind to the LinkLabel control’s Click event. It has a LinkClicked event which puts more information in the event about the link being clicked. Take a look at, of course, the MSDN examples:

    private void linkLabel1_LinkClicked(object sender, System.Windows.Forms.LinkLabelLinkClickedEventArgs e)
    {
        // Specify that the link was visited.
        this.linkLabel1.LinkVisited = true;
    
        // Navigate to a URL.
        System.Diagnostics.Process.Start("http://www.microsoft.com");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to change web-page without link, using greasemonkey? Is it even possible? For e.g.
Is it possible to change the size of a font in .net winforms without
Is it possible to change the assembly name based on the project configuration? I
Possible Duplicate: How to rewrite URL without refresh, like GitHub.com Hi all, I have
Is it possible to manipulate the query string without actually submitting a new HTTP
Possible Duplicate: Change CSS Dynamically I need to change the height of a div
Is it possible to change the width of a scroll bar on a form.
Is it possible to change the font size used in a ContextMenu using the
Is it possible to change a Sharepoint 2007 Site Theme through a Web Service?
Is it possible to change the frame title when using \againframe from the Beamer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.