So I'm using Visual C++ 2013 to make a GUI application using MFC. I've embedded a C# Windows Form into the GUI using this tutorial and from there, used this tutorial, to add data binding to the Windows Form window. Now, I can use the following line in C++ to change properties of the button and text:
m_MyControl.GetControl()->textBox1->Text = "text changed";
m_MyControl.GetControl()->button1->Text = "text changed";
But when I try this same method to change properties of a chart I added to the Windows Form, like so:
m_MyControl.GetControl()->chart1->Name = "test";
then I get the error that
error C2039: 'Name' : is not a member of System::Windows::Forms::DataVisualization::Charting::Chart'
I've no idea why this is occuring since chart1 is declared public along with button1 and textBox1 inside the C# designer file. The only difference I see with these is when I hover over button1 or textbox1 in the m_Mycontrol... line I get the data type but with chart1 all I get is <'error-type'>
Any help would be greatly appreciated.