我在C++/CLI中使用Winform,我有pictureBox1,我试图编译以下代码,但它失败了:
pictureBox1->Image->Dispose();编译器告诉Dispose is not a member of System::Drawing::Image,我试着在C#中使用它,它起作用了:
pictureBox1.Image.Dispose();我使用MS Visual Studio 2010。
发布于 2013-03-29 14:24:38
请尝试执行以下操作:
delete pictureBox1->Image; // Dispose the existing bitmap, if anyhttps://stackoverflow.com/questions/15698363
复制相似问题