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
32
votes
4 answers

LinkLabel... open in default web browser?

Is it possible to open a LinkLabel in the default computers web browser?
acctman
  • 4,229
  • 30
  • 98
  • 142
19
votes
5 answers

Hyperlink an Email Address using LinkLabel in C#

I have made an about box that is meant to allow users to click the hyperlink email address which will take them to a Microsoft Outlook to be able to send an email to the email address, but I don't know how to link it to Outlook and allow the user to…
Chris Bacon
  • 995
  • 8
  • 30
  • 42
13
votes
7 answers

How do I make a TLinkLabel work in Delphi?

I put a TLinkLabel on my form, filled it in with a caption including a valid HTML link, and got some nice blue underlined text. When I ran the program, I expected it to invoke Firefox (my default browser) and open the link automatically. …
Mason Wheeler
  • 82,511
  • 50
  • 270
  • 477
7
votes
1 answer

Using keyboard shortcuts with LinkLabel controls

I've noticed that keyboard-shortcuts assigned to linklabel controls in standard .NET WinForms forms are not functioning. I have created a LinkLabel control instance and assigned the Text property to be "Select &All". For most controls (label,…
Simon Gillbee
  • 3,932
  • 4
  • 35
  • 48
5
votes
1 answer

WinForms: How to align a LinkLabel within a paragraph of text?

I have a label being populated with dynamic text. It is often a paragraph or so in length. I need to seamlessly integrate a LinkLabel at the end of this paragraph with the words "View more ..." . It should look like this: Lorem ipsum dolor sit…
AlexScript
  • 809
  • 8
  • 18
4
votes
1 answer

How to disable LinkLabel TabStop?

I place a LinkLabel on a form, by default it has TabStop=true. I change TabStop to false and close the form. Then open the form again - TabStop is true. What happens and how do I disable TabStop for LinkLabel?
net_prog
  • 9,921
  • 16
  • 55
  • 70
4
votes
4 answers

Impersonation in .Net crashes when reading registry keys (LinkLabel SecurityException)

My app needs to impersonate a service account, which I do through a native-call to LogonUser. However, it appears that random components in the .Net library try to access registry keys the account doesn't have access to, causing a SecurityException…
BlueRaja - Danny Pflughoeft
  • 84,206
  • 33
  • 197
  • 283
4
votes
2 answers

Reduce Flicker of .NET FlowLayoutPanel

I'm clearing and adding multiple LinkLabel's to FlowLayoutPanel, every couple of seconds. It works fine, but flicker is quite noticeable. Is there any way to reduce it? I tried to set Form.DoubleBuffering, it didn't help.
SharpAffair
  • 5,558
  • 13
  • 78
  • 158
4
votes
1 answer

Implementing a TLabel with TabStop and FocusRect?

I'm using Delphi7 and I'm trying to implement a LinkLabel like the ones you can find under the Control Panel on Windows Vista and above. Changing the cursor/color on hover is really simple, the only thing I need to do is to make the TLabel receive…
Steve
  • 2,510
  • 4
  • 34
  • 53
4
votes
1 answer

Can I use LinkLabel on Visual Studios to link to a windows form?

I have been looking up on google to find out how to use linklabel to link to a Windows Form. All the tutorials that I've come across only link you to a URL or you local disk. Any help? I don't want to use buttons.
user1781232
  • 659
  • 4
  • 13
  • 29
3
votes
2 answers

difference between LinkLabel.Click and LinkLabel.LinkClicked event?

According to http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.aspx, the LinkLabel class has both a Click event inherited from System.Windows.Forms.Control and a LinkClicked event. From my understanding, Click event will…
Alexander Bird
  • 38,679
  • 42
  • 124
  • 159
3
votes
4 answers

New to C# - problems with link labels and functions

I am brand new to C# and have previously only written programs in JavaScript, so go easy on me ! I have written an "app launcher" program which reads a text file line by line. Each line is just a path to a program e.g.…
user734904
  • 41
  • 2
3
votes
2 answers

Link Labels c# - displaying a list of them

I am trying to add a list of linked lables to a listview. I amd doing so like this foreach (String s in values) { LinkLabel label = new LinkLabel(); label.Text = s; txtBox.Controls.Add(label); …
tom
  • 4,911
  • 11
  • 37
  • 39
3
votes
2 answers

one click calls both Click and LinkClicked event handlers

LinkLabel label = new LinkLabel(); // imagine there is a code to initialize the label label.Click += (sender, args) => callback1(); label.LinkClicked += (sender, args) => callback2(); If I click the label anywhere but not its link then callback1()…
LukAss741
  • 771
  • 1
  • 7
  • 24
3
votes
1 answer

How can I Change the Text and Link of a Windows Forms LinkLabel

I'd like to have only a link and the entire text clickable and both dynamically set. I don't know how to replace them. I tried below code and when it gets called more than one time I get null pointer exception error. I tried using this: void…
Jack
  • 16,276
  • 55
  • 159
  • 284
1
2 3 4 5 6 7