Getting a circular reference error in forms designer

  • Thread starter Thread starter Richard
  • Start date Start date
R

Richard

Hello all,

I recently bought and installed MS Visual C++.net and I have been working on
a project for the past several weeks. Today, I noticed that one of my
controls was misspelled, so I did a find and replace to rename it everywhere
it was used. Now, when I go into the forms desinger part of visual studio,
it gives me the following error:

A circular control reference has been made. A control cannot be owned or
parented to itself.

When I double click on the error, it message it points to the pragma
statement that is the very first line of my .h file. How can I find where
the problem is and how can I correct it. Any help would be greatly
appreciated.

Regards,

Richard
 
this newsgroup is dedicated to MS Access software, Richard, so i'm not sure
if you'd be better off asking the question in a C++ group or a Visual Studio
group. i don't know anything about either one, but i can tell you that
Access also does not allow circular references. it usually happens when the
name of a control is used in an expression placed in it's ControlSource
property, as

Name of control: Text1
ControlSource: = [Text1] + [Text2]

the solution is to rename the control.

hth
 
Back
Top