首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > VB Dotnet >

这行代码啥意思,改成vb.net如何写

2013-10-07 
这行代码啥意思,改成vb.net怎么写?网上的代码Image imageModel global::MyPictureBoxDemo.Properties.Re

这行代码啥意思,改成vb.net怎么写?
网上的代码Image imageModel = global::MyPictureBoxDemo.Properties.Resources.model;
改成vb.netDim imageModel As Image = Global.MyPictureBoxDemo.Properties.Resources.model
提示MyPictureBoxDemo不是<default>成员,把MyPictureBoxDemo改成根命名空间名,后面的又不对,vb.net2010,该如何写?

MyPictureBoxDemo是命名空间,还是?
[解决办法]
这是IDE自动生成的代码。
你可以把图片放入资源,在VS的窗体设计器中指定给Image属性。

热点排行