Click here to Skip to main content
15,914,074 members
Home / Discussions / C#
   

C#

 
QuestionUpload Large Audio File Pin
sjs4u5-Mar-10 20:25
sjs4u5-Mar-10 20:25 
AnswerRe: Upload Large Audio File Pin
MumbleB5-Mar-10 22:21
MumbleB5-Mar-10 22:21 
GeneralRe: Upload Large Audio File [modified] Pin
sjs4u5-Mar-10 22:56
sjs4u5-Mar-10 22:56 
GeneralRe: Upload Large Audio File Pin
MumbleB5-Mar-10 23:21
MumbleB5-Mar-10 23:21 
GeneralRe: Upload Large Audio File Pin
sjs4u5-Mar-10 23:29
sjs4u5-Mar-10 23:29 
QuestionWord Applications Author Name Pin
sjs4u5-Mar-10 19:01
sjs4u5-Mar-10 19:01 
AnswerRe: Word Applications Author Name [modified] Pin
1.21 Gigawatts5-Mar-10 21:07
1.21 Gigawatts5-Mar-10 21:07 
Questionprotected and inheritance question (i think - yes I'm kind of new) [Solved] Pin
swo.priv5-Mar-10 18:21
swo.priv5-Mar-10 18:21 
I'm trying to access the protected member PointInLink() from LinkLabel.

I've been able to get at it doing the following:

// in my main class
private void LinkLabel_MouseHover(object sender, EventArgs e)
{
    Point p = MyLinkLabel.PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y));

    ProtLL pll = new ProtLL();
    LinkLabel.Link lnk = pll.GetLink(p.X, p.Y);

    if (lnk != null)
    {
         // do stuff with lnk
    }
}

class ProtLL : LinkLabel
{
    public Link GetLink(int x, int y)
    {
         return PointInLink(x, y);
    }
}


The thing is, "lnk" is always null, since PointInLink has no idea which LinkLabel it's looking at. I can't seem to pass "MyLinkLabel" as an argument in GetLink(), as it then hides the PointInLink member again.

Is accessing PointInLink just not possible or am I going about it the wrong way?

Thanks in advance.
modified on Saturday, March 6, 2010 1:27 PM

AnswerRe: protected and inheritance question (i think - yes I'm kind of new) Pin
Khaniya5-Mar-10 18:40
professionalKhaniya5-Mar-10 18:40 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) [modified] Pin
swo.priv5-Mar-10 19:08
swo.priv5-Mar-10 19:08 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
1.21 Gigawatts5-Mar-10 21:34
1.21 Gigawatts5-Mar-10 21:34 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 4:55
swo.priv6-Mar-10 4:55 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
OriginalGriff6-Mar-10 5:22
mveOriginalGriff6-Mar-10 5:22 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 6:23
swo.priv6-Mar-10 6:23 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
OriginalGriff6-Mar-10 6:45
mveOriginalGriff6-Mar-10 6:45 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 7:24
swo.priv6-Mar-10 7:24 
QuestionMessage Removed Pin
5-Mar-10 17:11
gouthami chintala5-Mar-10 17:11 
AnswerRe: how to count the frequencycount of a word in a text file Pin
Dr.Walt Fair, PE5-Mar-10 18:06
professionalDr.Walt Fair, PE5-Mar-10 18:06 
QuestionProblems with bound list source for DataGridViewComboBoxColumn Pin
Xpnctoc5-Mar-10 12:51
Xpnctoc5-Mar-10 12:51 
AnswerRe: Problems with bound list source for DataGridViewComboBoxColumn Pin
Xpnctoc5-Mar-10 14:10
Xpnctoc5-Mar-10 14:10 
QuestionEnums, Intellisense, and switchs… Pin
Matthew Klein5-Mar-10 11:26
Matthew Klein5-Mar-10 11:26 
AnswerRe: Enums, Intellisense, and switchs…[modified] Pin
Dan Mos5-Mar-10 11:36
Dan Mos5-Mar-10 11:36 
GeneralRe: Enums, Intellisense, and switchs Pin
Matthew Klein5-Mar-10 11:55
Matthew Klein5-Mar-10 11:55 
JokeRe: Enums, Intellisense, and switchs Pin
Dan Mos5-Mar-10 11:57
Dan Mos5-Mar-10 11:57 
AnswerRe: Enums, Intellisense, and switchs… Pin
Luc Pattyn5-Mar-10 11:42
sitebuilderLuc Pattyn5-Mar-10 11:42 

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.