请问VC.NET下如何在PICUTREBOX里面调用IMAGELIST里面的图片?

fire81x 2007-12-12 11:27:39
请教~~~,而且还想问下如何通过C++语言命令实现PICTUREBOX中图片的更换
...全文
116 7 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
jimlee_1981 2007-12-19
  • 打赏
  • 举报
回复
换成VS2005没问题,我也试了。
fire81x 2007-12-12
  • 打赏
  • 举报
回复
你也是CLR框架吗?
北京的雾霾天 2007-12-12
  • 打赏
  • 举报
回复
我这里运行正常。
fire81x 2007-12-12
  • 打赏
  • 举报
回复
谢谢楼上,但是好像还是有问题,出现如下错误:
error C2845: 'System::Windows::Forms::ImageList::ImageCollection __gc *' : pointer arithmetic not allowed on this type
顺便说下,我用的C++/CLI
北京的雾霾天 2007-12-12
  • 打赏
  • 举报
回复

private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
static int i=0;
this->pictureBox1->Image = this->imageList1->Images[i];
i++;
if (i>=this->imageList1->Images->Count)
{
i=0;
}
}
fire81x 2007-12-12
  • 打赏
  • 举报
回复
是的,应该是2003的框架
真相重于对错 2007-12-12
  • 打赏
  • 举报
回复
__gc* ??

你用的是老的mc++的语法

7,539

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 VC.NET
社区管理员
  • VC.NET社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧