首页 > 解决方案 > PictureBox 未在单击的标签上更新

问题描述

我已经在 C++-cli Visual Studio 中创建了这个程序来更新标签点击时的图片框,但它没有得到更新。

private: System::Void label1_Click2(System::Object^ sender, System::EventArgs^ e) {
        if (ctapas==1)
            pictureBox14->ImageLocation = "./Release/IMG/420.png";
        if (ctapas==2)
            pictureBox14->ImageLocation = "./Release/IMG/421.png";
    ctapas++;

标签: winformsc++-cli

解决方案


推荐阅读