Click here to Skip to main content
15,847,653 members
Home / Discussions / C#
   

C#

 
GeneralRe: Assembly Pin
John Fisher2-Nov-02 10:22
John Fisher2-Nov-02 10:22 
GeneralRe: Assembly Pin
ian mariano2-Nov-02 10:59
ian mariano2-Nov-02 10:59 
GeneralRe: Assembly Pin
kavehdr2-Nov-02 12:32
kavehdr2-Nov-02 12:32 
GeneralRe: Assembly Pin
John Fisher2-Nov-02 14:29
John Fisher2-Nov-02 14:29 
GeneralRe: Assembly Pin
ian mariano2-Nov-02 15:17
ian mariano2-Nov-02 15:17 
GeneralHttpWebRequest Pin
kavehdr2-Nov-02 8:45
kavehdr2-Nov-02 8:45 
GeneralRe: HttpWebRequest Pin
Stephane Rodriguez.2-Nov-02 9:39
Stephane Rodriguez.2-Nov-02 9:39 
GeneralComponent.Site Pin
Pete Bassett2-Nov-02 8:30
Pete Bassett2-Nov-02 8:30 
Hi all.

I'm developing a class that inherits from System.ComponentModel.Component in much the same way as Timer etc.

What I need to know is "How do I get a reference to the parent Form?"

I need this so I can add a event handler for the forms Activated/Deactivated events.

I've looked though my MSDN and it happily defines the ISite interface properties but it doesn't show how the whole thing fits together.

Also, when I debug the component, this.Site and this.Comtainer are both null...Is there an attribute I need to add to the Component?

Thanks for any help you can give me on this guys (and Gals!)

Pete

Insert Sig. Here!
GeneralRe: Component.Site Pin
ian mariano2-Nov-02 8:39
ian mariano2-Nov-02 8:39 
GeneralRe: Component.Site Pin
Pete Bassett2-Nov-02 12:15
Pete Bassett2-Nov-02 12:15 
GeneralRe: Component.Site Pin
Stephane Rodriguez.2-Nov-02 20:00
Stephane Rodriguez.2-Nov-02 20:00 
GeneralRe: Component.Site Pin
Pete Bassett2-Nov-02 23:37
Pete Bassett2-Nov-02 23:37 
GeneralRe: Component.Site Pin
Pete Bassett3-Nov-02 2:10
Pete Bassett3-Nov-02 2:10 
GeneralRe: Component.Site Pin
Stephane Rodriguez.3-Nov-02 2:57
Stephane Rodriguez.3-Nov-02 2:57 
GeneralRe: Component.Site Pin
Pete Bassett3-Nov-02 3:41
Pete Bassett3-Nov-02 3:41 
GeneralRe: Component.Site Pin
leppie3-Nov-02 4:25
leppie3-Nov-02 4:25 
GeneralRe: Component.Site Pin
Stephane Rodriguez.3-Nov-02 4:46
Stephane Rodriguez.3-Nov-02 4:46 
GeneralRe: Component.Site Pin
Pete Bassett3-Nov-02 8:52
Pete Bassett3-Nov-02 8:52 
GeneralRe: Component.Site Pin
ian mariano3-Nov-02 9:07
ian mariano3-Nov-02 9:07 
GeneralRe: Component.Site Pin
Pete Bassett3-Nov-02 23:19
Pete Bassett3-Nov-02 23:19 
QuestionWhen has the context menu disappeared? Pin
Nnamdi Onyeyiri2-Nov-02 3:22
Nnamdi Onyeyiri2-Nov-02 3:22 
AnswerRe: When has the context menu disappeared? Pin
Stephane Rodriguez.2-Nov-02 4:47
Stephane Rodriguez.2-Nov-02 4:47 
GeneralRe: When has the context menu disappeared? Pin
Nnamdi Onyeyiri2-Nov-02 9:06
Nnamdi Onyeyiri2-Nov-02 9:06 
QuestionHow to enforce db access security? Pin
Martin Haesemeyer2-Nov-02 0:23
Martin Haesemeyer2-Nov-02 0:23 
AnswerRe: How to enforce db access security? Pin
leppie2-Nov-02 0:24
leppie2-Nov-02 0:24 

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.