Have Child, Got Parent, need Sibling

This is a discussion on Have Child, Got Parent, need Sibling within the C++ Programming forums, part of the General Programming Boards category; I use FindForm to get the Parent Object but the Object Members/Properties do not include access to the "public textBox1":
...

I have tried directly accessing FormNamespace::Form1::textBox1 to no avail... can you give me an example of what you mean otherwise. And by the way, myForm->Name does give 'Form1'.

What brewbuck is saying is that instead of
Form^ myForm
you should use the class that is derived from Form.
By the sound of things I'm guessing you should use
Form1^ myForm = ctrl->FindForm();
or if FindForm() is a member function of Form1 I think you can just cast 'sender' to Form1 directly
Form1^ myForm = safe_cast<Form1^>(sender);

Actually I added a carat and it complied without errors:
TextBox^ tb = safe_cast<TextBox^>(myForm->Controls["textBox1"]);

But then crashed when I clicked the button with:
Object reference not set to an instance of an object.

And, in case anyone is curious... Yes it is possible to take your Form functions out of the form.h and put them into a source.cpp --if you are using VC++ 2008 Express the final trick is to attach the events in the Form1_Load so that the designer doesn't grip about a parse error: