将彩蛋图片塞进来

This commit is contained in:
陈浩南 2022-03-08 17:52:03 +08:00
parent dade5f63d8
commit 189c44f429
4 changed files with 5 additions and 5 deletions

2
Form1.Designer.vb generated
View File

@ -176,7 +176,7 @@ Partial Class Form1
'
'PictureBox1
'
Me.PictureBox1.Image = Global.幸运抽奖.My.Resources.Resources.egg_jpg
Me.PictureBox1.Image = Global.幸运抽奖.My.Resources.Resources.egg
Me.PictureBox1.Location = New System.Drawing.Point(48, 23)
Me.PictureBox1.Name = "PictureBox1"
Me.PictureBox1.Size = New System.Drawing.Size(272, 208)

View File

@ -63,9 +63,9 @@ Namespace My.Resources
'''<summary>
''' 查找 System.Drawing.Bitmap 类型的本地化资源
'''</summary>
Friend ReadOnly Property egg_jpg() As System.Drawing.Bitmap
Friend ReadOnly Property egg() As System.Drawing.Bitmap
Get
Dim obj As Object = ResourceManager.GetObject("egg.jpg", resourceCulture)
Dim obj As Object = ResourceManager.GetObject("egg", resourceCulture)
Return CType(obj,System.Drawing.Bitmap)
End Get
End Property

View File

@ -118,7 +118,7 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="egg.jpg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>\\192.168.100.1\home\Desktop\006qir4ogy1fzmgwlbz0wj309v06yq5r.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
<data name="egg" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\egg.jpg;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

BIN
egg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB