Hi,

Thanks very much for replying. As you can see I am new to this!! I really appreciate your feedback. I have copied the line (Line 281) which throws the error below:

public: System::Void button4_Click(System::Object^ sender, System::EventArgs^ e) {
this->textBox2->text=str1;//this line throws the C2248 error
Form6::Hide();
Form7 myForm;
if(myForm.ShowDialog() == System::Windows::Forms::DialogResult::OK)
{
//Do stuff
}