Questions tagged [linklabel]

Represents a Windows label control that can display hyperlinks

In .NET the LinkLabel class represents a Windows label control that can display hyperlinks. Hyperlinks are sometimes useful in Windows Forms programs. The LinkLabel control provides hyperlinks similar to those on web pages.

104 questions
3
votes
2 answers

Making dynamically created linklabels clickable in Winforms

I am making a program that will allow a user to click on a business name created by dynamic link labels. I have never used link labels in C# before an wanted to know how one does that. The number of businesses that can be generated for a partucular…
Kinyanjui Kamau
  • 1,890
  • 10
  • 55
  • 95
2
votes
4 answers

LinkLabel needing more space than TextRenderer.MeasureText says

If I give TextRenderer.MeasureText some text to measure and width to use it will return the height needed to display that text. private static int CalculateHeight(string text, Font font, int width) { Size size = TextRenderer.MeasureText(text,…
Mike Hall
  • 1,151
  • 2
  • 10
  • 24
2
votes
1 answer

Delphi: Change the font of links TLinkLabel

How do I change the font of the link TLinkLabel? For example, I want that the size of this link was 10 and the color blue: I'm trying to change this way: LinkLabel1.Font.Color:=clBlue; LinkLabel1.Font.Size:=10; ,but nothing happens.
dedoki
  • 709
  • 4
  • 14
  • 24
2
votes
1 answer

C# basic linkLabel doesn't open url, exception unhandled

This is my simple code, yet it throws me an exception for some reason private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("chrome",…
Horsat
  • 21
  • 1
2
votes
1 answer

Improve LinkLabel - Use system hand Cursor and Change Link Color

LinkLabel control has some annoying problems: By default, it doesn't use any system colors (namely Color.Blue instead of SystemColors.HotTrack for the LinkColor property) It uses the old, ugly, aliased version of the hand cursor I have found the…
Jonas Kohl
  • 1,018
  • 1
  • 11
  • 28
2
votes
1 answer

FlowLayoutPanel add to columns?

I have a flow layout panel, which i add a Dictionary of Linklables too Is it possible to add the two to the flow layout panel (as in 2 i mean key and value) next to each other as long as the value.text != "somevalue" in whcih case i want to just add…
tom
  • 4,911
  • 11
  • 37
  • 39
2
votes
3 answers

issue with flow layout panel / link labels

i am setting text to a link label and adding these labels to a flow layout panel. It seems to be chopping off the ends of the link labels and as such i have labels with only 3/4's of the text. Does anyone know why this might be? Thanks
tom
  • 4,911
  • 11
  • 37
  • 39
2
votes
2 answers

How to remove a LinkLabel as a tab stop when using .NET 3.5?

When a user tabs through the fields they have to tab through a LinkLabel to get to the next field. I would rather them go straight from field to field without stopping on the LinkLabel. However, in .NET 3.5 the LinkLabel does not have a TabStop…
Bennett Elder
  • 118
  • 1
  • 8
2
votes
1 answer

Displaying a different tooltip for each link area of a .NET LinkLabel control

Suppose I add a LinkLabel control to a Windows form and define two different links in it, as with this C# snippet: LinkLabel ll = new LinkLabel(); Controls.Add(ll); ll.Text = "Click here or here"; ll.Links.Add(6, 4,…
Michael
  • 1,367
  • 10
  • 18
2
votes
2 answers

Unhandled exception when Linklabel is clicked C# Winform

I am getting a strange unhandled exception when I click the linklabel which should open a form. I have tried to put the code in linklabel_click event handler in try-catch block, but I still get the error below. See the end of this message for …
kobra
  • 4,853
  • 10
  • 32
  • 33
2
votes
1 answer

LinkLabel doesn't open

I'm creating LinkLabel in Form2 and Form3 with the same code. Form2 and Form3 are separate classes so the names don't interferer. They are both created, but in the Form 3 links open, in the Form2 nothing happens. This is the code for Form2 public…
cikatomo
  • 1,620
  • 2
  • 23
  • 32
2
votes
3 answers

LinkLabel in C# copies its Text on double-click

When I double-click a LinkLabel in WindowsForms it copies its text; how can I prevent this? BTW, it's a .Net 2.0 application, if that makes any difference. Thanks
TheBlueSky
  • 5,526
  • 7
  • 35
  • 65
2
votes
1 answer

C#, Windows Forms, LinkLabel Column

can anyone provide me with a working example of creating a custom datagridview column control with a linklabel inside? First of all, I can't use LinkColumn, as I need to have multiple, clickable links in the same cell. Examples found all over the…
user1338208
1
vote
2 answers

Using Powershell to create click events for a System.Windows.Forms.Linklabel with multiple links

First time asking a question here. I'm working on designing a dynamic popup script to be used by other people. One of the needs for this script is to have a popup that allows an everyday tech to create a message that has multiple links. To do this,…
Pezz570
  • 13
  • 3
1
vote
1 answer

New Linklabel when button is pressed in webbrowser c#

I am making a web browser and I need to figure out something. When the user types into a text box and presses a button, it will make a new link label with that address that they typed into the text box. I've tried and looked everywhere but I can't…