Question: I ' m using Winforms in Visual studios C + + . I am trying to load a bitmap picture into another form. I am

I'm using Winforms in Visual studios C++. I am trying to load a bitmap picture into another form. I am getting A 'System.ArgumentException:Parameteer is not valid' error. I have created ther bitmap4.bmp pic through the resource file. This is the event handler, when i click on this picture that is a button I want it to load that specific picture "bitmap4.bmp" and then take you to the next form "NewItem". How can I fix the errorr im recieving? Here is the c++ code for the event handler.
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e){
Bitmap^ originalImage = gcnew Bitmap("bitmap4.bmp");
NewItem^ Back = gcnew NewItem(this);
Back->Show();
this->Hide();.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!