Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reference one form from another

Status
Not open for further replies.

nippysaurus

Programmer
Oct 27, 2006
3
AU
I am not too familiar with Borland C++ and how it works, but am reletively good with C++. I have created multiple forms using BCPP and would like to reference a control on one form from another. How do I go about this?
 
Simply "Form2->xxxx"

Totte
Keep making it perfect and it will end up broken.
 
That doesnt seem to work. Message comes up saying "Unable to invoke code completion due to errors in source code". I have three forms with the default names (Form1, Form2, etc).

I'm lost :(
 
Attempt to compile all your modules. check your errors, because the message you are getting indicates there is a problem in the compilation. Code completion will not work if there are errors in preceding code. (I know this is rather obvious, but did you forget to include Form2's Header file by any chance?)

The simplest solution is the best!
 
I didnt know that they needed to be included. Sorry for the newbie question I guess. Although it did help, so thank you :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top