Re: find Component's host ( Form ) PLEASE HELP



Hi Marcus,

if you write your own control, you can reference the ParentForm
property of the control.
Hope this helps,

Marcel

Marcus Kraus schreef:

Hi there

i am a newbie on C#...

I have wrote a Component and I need to get a reference on the Form the
component resides in...

How can I do it ???

I know that the form is using

this.cTestEditor1 = new TestClassLib.cTestEditor(this.components);

but How can I get to the form ( or a reference ) inside my component ???

this.components is not storing any information about it !!!

Thanx

Marcus

.



Relevant Pages

  • RE: Built in function errors.
    ... located on other tabs in a tab control. ... I had to find a way to use the reference. ... TLBs on the client computer. ... reselect libraries simply makes the application not worth building using ...
    (microsoft.public.access.modulesdaovba)
  • Re: Reference forms and fields with variables
    ... There are so many ambiguities here, that it may not really help to follow ... If Field2 is a field in the underlying recordset, ... but the reference is unstable. ... LinkChildFields property of a subform is NOT represented by a control in the ...
    (microsoft.public.access.formscoding)
  • RE: f7s4r4v
    ... speaking this is a reference to the current instance of the class, ... Similarly any references to a control on the form simply by the ... Private Sub Form_AfterUpdate ... intSecond As Integer) ...
    (microsoft.public.access.gettingstarted)
  • Re: Referencing problem
    ... Re:> Activecontrol does not return the correct reference for controls ... Dim ctlSpell As Control ... If TypeOf ctlSpell Is TextBox Then ... If the tab is on a subform, ...
    (comp.databases.ms-access)
  • Re: How to force a page to be into a frame?
    ... >> suggesting that someone needs permission to reference a particular page ... But web hosts are not known for understanding ... I have the right to control them. ... But you do *not* have the right to control someone else's reference to ...
    (comp.infosystems.www.authoring.html)