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
1
vote
3 answers

C# LabelLink LinkArea detection for mouse position

Is there a way to determine if the mouse is within the LinkArea of a LinkLabel control in C#? Any help would be greatly appreciated.
William Troup
  • 12,739
  • 21
  • 70
  • 98
1
vote
3 answers

C# - Fix linklabel hand-cursor

I have two link labels in my windows forms program which links to my website. I got rid of the underlines and the ugly blue colour and tried to fix them up a little bit. But the biggest problem still remains and It's just so disturbing for me, I…
user3036459
1
vote
1 answer

C# LinkLabel to access database hyperlink

I am trying to use a LInklabel to open a hyperlink i have on my access database. However, this is the first time using a linklabel. Any suggestions would be great! con.Open(); str = "Select * from loc where link ='" + facility+ "'"; …
hex c
  • 705
  • 2
  • 13
  • 22
1
vote
2 answers

Activate form after click on link by middle mouse button

I want to implement a LinkLabel so that when clicked on it by middle mouse button was performed opening the link in a browser, and then a form with LinkLabel back automatically become activated. For this was written the code below. But it does not…
Anatolii Humennyi
  • 1,807
  • 3
  • 26
  • 37
1
vote
2 answers

How to know which link from one and the same linklabel was right clicked in the context menu?

I have a LinkLabel to which a context menu strip is attached. This context menu has 2 options: 'Copy hyperlink' or 'Open hyperlink'. There is no problem when there is only one link in the link label. But I can't figure out how you can (if you can)…
Toon Casteele
  • 2,479
  • 15
  • 25
1
vote
1 answer

Is there a way to overwrite the dotted selection/ highlight rectangle for a LinkLabel?

There are certainly some advantages in having a selection rectangle highlighting the currently selected element which also has the focus. However an element with padding can cause the rectangle to be drawn on a totally unwanted position and…
merkuro
  • 6,161
  • 2
  • 27
  • 29
1
vote
2 answers

get text of linklabel created at runtime

can someone please explain to me how i can get the Text property of the linklabel that i have created at runtime? I have tried: string str = e.Link.LinkData; ...but that just displays an empty messagebox. Thanks lots :)
jay_t55
  • 11,362
  • 28
  • 103
  • 174
1
vote
3 answers

How to have a LinkClicked event using an ArrayList of LinkLabels in .NET

I'm working on a form that will display links to open different types of reports. This system has different types of users, so the users should only be able to see the links to the types of reports they can access. Currently, the way I have this…
DoryuX
  • 179
  • 4
  • 11
1
vote
2 answers

Why does my Tooltip not display its tip?

I have a Tooltip with the ShowAlways property set to true. On the controls where I want the tooltip to display (LinkLabels in this instance), I see there is a "ToolTip on " property which expects a string. However, my tooltip is…
B. Clay Shannon-B. Crow Raven
  • 8,547
  • 144
  • 472
  • 862
1
vote
1 answer

Use Linklabel image to get onclick event with out any text

I have an linklabel in C# winforms. It has no text but it has an image as background. Is there any way i can use the image as hyperlink to trigger the onclick event? I have searched a lot and all i could find was only text manipulations (like put…
takirala
  • 1,891
  • 2
  • 16
  • 36
0
votes
1 answer

how to make linkLabel acting as simple hyper link on right click in .net winforms

are there any ways to make linkLabel (.net 4.0) working as simple hyperlink on right mouse click - i mean to open a menu with "open in new tab", "open in new window" and so on. if not, is there any way to develop custom control that will act like…
Boltosaurus
  • 2,138
  • 3
  • 21
  • 33
0
votes
1 answer

How to use a link label to open a pdf in a web browser?

How to use a link label to open a pdf in a web browser ? I have a Windows Forms application and I am making a REST service request. The response contains the URL of PDF I want to open in a web browser. Is this possible ? I am referencing this…
BentOnCoding
  • 27,307
  • 14
  • 64
  • 92
0
votes
2 answers

How to add a linklabel in a PropertyGrid in Windows Forms

we have an information tool that displays information from active directory on a gui. I want to extend that tool to the part that i can click on a text to open a file. I am struggeling with the function to do the text clickable. The tool was made in…
0
votes
0 answers

Basic use of Linklabel tool in winforms gives Exception Handling Error

SOLUTION: Add this code into the method: Process.Start(new ProcessStartInfo() { FileName = url, UseShellExecute = true }); This simple code gives Exception Handling Error: using System; using System.Collections.Generic; using…
0
votes
1 answer

How to get LinkLabel Control from DataGridview

How to get LinkLabel control from DataGridview in Windows Forms application? Below is the code I am writing, able to get the value but not able to get the LinkLabel control. private void dataGridView1_CellContentClick(object sender,…