You are misusing the form class, you instantiate two objects of the Blank class in your code.
And you need to set the window text prior to showing the form ...
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
// A single instance of Blank needed in this function
Blank BlankFrm;
// Set the window text before you show the form
BlankFrm.Text = this->comboBox1->SelectedItem->ToString();
// then show the form
BlankFrm.ShowDialog();
}
mitrmkar
Posting Virtuoso
1,809 posts since Nov 2007
Reputation Points: 1,105
Solved Threads: 395