winforms - 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++;
解决方案
推荐阅读
- typescript - 如何使用 TypeScript 正确读取 json 文件?
- amazon-web-services - 使用 ESP32 在 AWS S3 上上传 txt 文件
- r - 在 R 中为我的偏度测试设置可接受的区域
- filemaker - 尝试创建 Quickbooks 发票时出现 Filemaker/Claris Connect 工作流错误
- c++ - 无法将字符串返回函数与字符串进行比较
- c++ - 线程 1:EXC_BAD_ACCESS(代码=2,地址=0x7ffeef3ffff8)
- sql-server - SSIS 容器属性
- scala - Spark scala CSV写入选项转义和引用一起破坏CSV文件
- r - “R”警告消息:在 mapply 较长的参数中不是较短长度的倍数
- javascript - 检测到在导航栏外部单击