Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
QuestionHow to: Launch an application and embed it into a dockable window? Pin
Shmulik285-Mar-10 9:06
Shmulik285-Mar-10 9:06 
AnswerRe: How to: Launch an application and embed it into a dockable window? Pin
DaveyM695-Mar-10 9:16
professionalDaveyM695-Mar-10 9:16 
GeneralRe: How to: Launch an application and embed it into a dockable window? Pin
Giorgi Dalakishvili6-Mar-10 2:49
mentorGiorgi Dalakishvili6-Mar-10 2:49 
QuestionDisable DataGridViewTextBoxCell Right Click Menu Pin
potatoe915-Mar-10 8:49
potatoe915-Mar-10 8:49 
QuestionProgram inter-instance communication? Pin
Matthew Klein5-Mar-10 8:00
Matthew Klein5-Mar-10 8:00 
AnswerRe: Program inter-instance communication? Pin
kevinnicol5-Mar-10 8:34
kevinnicol5-Mar-10 8:34 
AnswerRe: Program inter-instance communication? Pin
Matthew Klein5-Mar-10 8:50
Matthew Klein5-Mar-10 8:50 
QuestionHow to access PointInLink() for a LinkLabel [modified] Pin
swo.priv5-Mar-10 7:38
swo.priv5-Mar-10 7:38 
I've been trying to find a way to get the link at a certain point in a LinkLabel.

I've done it with items in a ListView using

Point p = lv.PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y));
ListViewItem lvi = lv.GetItemAt(p.X, p.Y);

I've been able to find the LinkLabel equivalent, PointInLink(), but it's a protected method and I don't know how to access it.

I've been googling for a couple days now and I just can't find an example I can wrap my head around. I was hoping someone could point me in the right direction.

Thanks in advance.

PointInLink() found at http://msdn.microsoft.com/en-us/library/system.windows.forms.linklabel.pointinlink(VS.71).aspx
I'm using VS2008, .NET 3.5.

Edit --------------

Another solution I've been looking at is checking the state of my links, like

foreach (LinkLabel.Link lnk in ll.Links)
{
if (lnk.*State* == LinkState.Hover)
// do something
}

This would work for me, except I cannot find a way to get the link's current state. The lnk variable (used in the loop) does not have a definition for it.
modified on Friday, March 5, 2010 3:58 PM

QuestionHow to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 5:07
Britt Mills5-Mar-10 5:07 
AnswerRe: How to get the exact File the User Click on?? Pin
Luc Pattyn5-Mar-10 5:18
sitebuilderLuc Pattyn5-Mar-10 5:18 
GeneralRe: How to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 5:28
Britt Mills5-Mar-10 5:28 
GeneralRe: How to get the exact File the User Click on?? Pin
Luc Pattyn5-Mar-10 5:36
sitebuilderLuc Pattyn5-Mar-10 5:36 
GeneralRe: How to get the exact File the User Click on?? Pin
Britt Mills5-Mar-10 6:10
Britt Mills5-Mar-10 6:10 
QuestionVoice Enabled System Pin
amitk_1895-Mar-10 4:55
amitk_1895-Mar-10 4:55 
AnswerRe: Voice Enabled System Pin
Not Active5-Mar-10 5:04
mentorNot Active5-Mar-10 5:04 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:13
amitk_1895-Mar-10 5:13 
GeneralRe: Voice Enabled System Pin
Not Active5-Mar-10 5:17
mentorNot Active5-Mar-10 5:17 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:20
amitk_1895-Mar-10 5:20 
GeneralRe: Voice Enabled System Pin
Keith Barrow5-Mar-10 5:33
professionalKeith Barrow5-Mar-10 5:33 
AnswerRe: Voice Enabled System Pin
Keith Barrow5-Mar-10 5:14
professionalKeith Barrow5-Mar-10 5:14 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:16
amitk_1895-Mar-10 5:16 
GeneralRe: Voice Enabled System Pin
Not Active5-Mar-10 5:18
mentorNot Active5-Mar-10 5:18 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:20
amitk_1895-Mar-10 5:20 
GeneralRe: Voice Enabled System Pin
amitk_1895-Mar-10 5:23
amitk_1895-Mar-10 5:23 
GeneralRe: Voice Enabled System Pin
Keith Barrow5-Mar-10 5:30
professionalKeith Barrow5-Mar-10 5:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.