Visual C++: Can one object (DataGridView) have multiple names and work?!?

I have a DataGridView object that I initially named "dataGridView1" then I used "Find and replace" to try to rename it "dataGridViewMAIN", and I just noticed that it still has it under BOTH names in different places.

And yet the program still compiles and works perfectly. Anyone know how this is possible?

Thanks guys.
Either one is a reference or pointer to the other, or it's merely giving the impression of working, and will eventually break.
Topic archived. No new replies allowed.