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
0
votes
2 answers

C# write text to textbox which adds written text to linklabel and when linklabel clicked goes to url?

I'm trying to do the following: I write link to textbox and it displays in a linklabel and after I click linklabel it goes to that url written in it? Everything goes well but pressing linklabel doesn't go to url. public partial class Form1 : Form { …
konzaales
  • 19
  • 1
  • 6
0
votes
1 answer

How to find a LinkLabel or Button on TabPage

I'm trying to put dynamicaly a LinkLabel (also I traied to put a button) in a TabPage: LinkLabel newLinkLabelButton = new LinkLabel(); newLinkLabelButton.Text = "Login"; newLinkLabelButton.Name =…
kirpi4
  • 143
  • 1
  • 1
  • 11
0
votes
0 answers

LinkClicked event not firing for LinkLabel in a scrollable Panel in C# after using mouse wheel

I'm working in Visual Studio Express 2012, making a C#-based WinForms application. I have a Panel containing a LinkLabel with a maximum width, causing a vertical scroll bar to appear on the panel when required (the text in the label is built at…
Michael
  • 1,367
  • 10
  • 18
0
votes
1 answer

Is there a built-in way to replace the text of a link in a LinkLabel and have the other links automatically adjust so they stay on the same text?

In other words, if I have: var ll = new LinkLabel(); ll.Text = "Some links go here."; ll.Links.Add(0, 4); // Some ll.Links.Add(11, 2); // go Is there any method I can call to replace the text of the "Some" link with something else while keeping…
Instance Hunter
  • 7,837
  • 5
  • 44
  • 56
0
votes
2 answers

Dynamically creating Link Labels using foreach in c#

I am trying to create link labels dynamically using foreach . I am setting the text of each linklabel to a string which is stored in flatestgames string array and whose links are stored in flatestlinks string array. But it is throwing a null…
0
votes
1 answer

Dynamically adding LinkLabels to a TableLayoutPanel

I've been having a problem with the following code: namespace Viewer { public partial class Form1 : Form { int count = 0; LinkLabel[] linkLabel = new LinkLabel[200]; string filename; string extension; …
Jon Torsch
  • 15
  • 1
  • 5
0
votes
3 answers

How to find out the name of the caller object during a function?

I'm trying to create a "list" using linklabels to identify attachments (in a mail client). So, I've this to create the links: Label newLabel = new LinkLabel(); newLabel.Name = "anexo" + Convert.ToString(anexos_file.Count); //anexos_file is a list…
João Borrego
  • 95
  • 2
  • 12
-1
votes
3 answers

Is there a dynamic-creation-friendly LinkLabel Alternative?

I'm trying to dynamically create a link from a Windows Form to our website when certain conditions are met (it's a warning message with further information in our online manual). Currently I'm finding LinkLabel quite unwieldy to use in this…
Stu Pegg
  • 1,287
  • 2
  • 14
  • 41
-1
votes
1 answer

linklabel to open excel file vb.net

Well i want to do something but i don't find a way to do it. I have 3 linklabels in a form as you can see in the picture. I want so open an excel file when i click in a linklabel. i tried this: Private Sub LinkLabel1_LinkClicked(sender As…
Paula Lopes
  • 61
  • 1
  • 8
-1
votes
1 answer

ASP.NET giving style to Linklabel

I'm a novice at asp.net and I want to give style to a linklabel. My code as follows: Guest .userlabel { display:inline-block; text-decoration: underline; …
Sertan Pekel
  • 593
  • 2
  • 5
  • 23
-1
votes
1 answer

Hyperlink label is not working with autolayout

I have to create tap on link from label ,so I found this link https://github.com/d6u/TapLabel.When I create demo ,it's working on View and tableview. But when I use this TapLabel example in my project ,it's not working. Actually I need tap link in…
-1
votes
1 answer

Winform/Program and how to write class 1, class 2, class 3, class 4 in array to linklabels?

So my program works like this: using winforms, user enters ID number, using an array, based on the right id number, that student information and class schedule outputs in a message box! My question is how to take the 4 classes in the message…
JB.
  • 21
  • 1
  • 7
-2
votes
1 answer

Object does not contain a definition of tag and no accessible extension methode error

I'm trying the show some data from my table by clicking on a link label, but when i launch the application, i have some error like : Object does not contain a definition of tag and no accessible extension methode error Error line : int appID =…
kamal
  • 9
  • 5
-3
votes
2 answers

NullReferenceException with LinkLabel

This is a pseudo-problem. I can force the link to open the desired page in the EventHandler, but I want to know what I am doing wrong in this scenario, and do it the right way: In InitializeComponent(), in partial class Form1: public void…
Tako M.
  • 295
  • 1
  • 3
  • 13
1 2 3 4 5 6
7