Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
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 
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 
Yes. So?
private void linkLabel1_MouseHover(object sender, EventArgs e)
    {
    ProtLL pll = sender as ProtLL;
    if (pll != null)
        {
        Point p = pll.PointToClient(new Point(Cursor.Position.X, Cursor.Position.Y));
        System.Windows.Forms.LinkLabel.Link l = pll.GetLink(p.X, p.Y);
        }
    }
I assume you are using your ProtLL class instead on LinkLabels on your form? Otherwise, no, you can't access it. If you only have the one ProtLL you are interested in, then use it's name directly instead of casting it.
You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace

C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy

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 
AnswerRe: Enums, Intellisense, and switchs… Pin
harold aptroot5-Mar-10 11:45
harold aptroot5-Mar-10 11:45 
GeneralRe: Enums, Intellisense, and switchs… Pin
Dan Mos5-Mar-10 11:52
Dan Mos5-Mar-10 11:52 
GeneralRe: Enums, Intellisense, and switchs… Pin
harold aptroot5-Mar-10 11:55
harold aptroot5-Mar-10 11:55 
GeneralRe: Enums, Intellisense, and switchs… Pin
Dan Mos5-Mar-10 11:56
Dan Mos5-Mar-10 11:56 
GeneralRe: Enums, Intellisense, and switchs… Pin
Matthew Klein5-Mar-10 11:56
Matthew Klein5-Mar-10 11:56 
GeneralRe: Enums, Intellisense, and switchs… Pin
BryanWilkins5-Mar-10 11:58
professionalBryanWilkins5-Mar-10 11:58 
AnswerRe: Enums, Intellisense, and switchs… Pin
RCoate5-Mar-10 15:54
RCoate5-Mar-10 15:54 

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.