刚出生四天的新人有个问题
vb2010吧
全部回复
仅看楼主
level 5
“ PictureBox1.Image = My.Resources.MyPictureName2 ”

“ If Me.BackgroundImageLayout = ImageLayout.Stretch Then Me.BackgroundImageLayout = ImageLayout.Center
Else
Me.BackgroundImageLayout = ImageLayout.Stretch
End If ”
MSDN里关于‘PictureBox 控件显示图片’和‘窗体的BackgroundImage与BackgroundImageLayout属性’的讲解
这两段里的‘ My. ’和‘ Me. ’分别代表什么?
2013年08月22日 11点08分 1
level 13
My是VB.NET特有的,使用My.Resources可以访问到当前项目里加入的资源,另外还可以实现网络交互,文件操作等等功能。
Me表示当前窗体,使用Me可以访问代码所在当前的窗体。
2013年08月22日 13点08分 2
1