Hello everyone. I'm using VC++ 2010 express.
I got windows form application.
I got a line: vardas = vardas -> Text;
I already got textbox "vardas", i already declared his variable.
And i get error PATH/TO/IT/Form1.h(204): error C2440: '=' : cannot convert from 'System::String ^' to 'System::Windows::Forms::TextBox ^'
So can anyone let me know how to convert it?
You seem to want to have two different type variables with the same name. If vardas is of type System::Windows::Forms::TextBox, then define String vardas_text=vardas -> Text;