forked from installisk/flowerfield
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resreader.vb
46 lines (29 loc) · 1.21 KB
/
resreader.vb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Imports System.Windows.Forms
Imports System.Resources
Imports System.Reflection
Imports System.IO
Public Class TestResources
Inherits System.Windows.Forms.Form
private b as New Button()
Public Sub New()
MyBase.New()
MyBase.Topmost = True
MyBase.Text = "Это Заголовок формы"
MyBase.Size = new System.Drawing.Size(520,520)
' MyControlArray = New ButtonArray(Me)
' MyControlArray.AddNewButton()
' MyControlArray(0).BackColor = System.Drawing.Color.Red
b.Dock = DockStyle.Top
b.Text = "Это Кнопка b"
MyBase.Controls.Add(b)
MyBase.Show()
' http://msdn.microsoft.com/en-us/library/aa984408(v=vs.71).aspx
Dim rm As New ResourceManager("GreetingResources", _
GetType(TestResources).Assembly())
Console.Write(rm.GetString("prompt"))
b.Image = Ctype(rm.GetObject("dog"),System.Drawing.Image)
End sub
Public Shared Sub Main()
System.Windows.Forms.Application.Run(New TestResources())
End Sub
End Class