Private ComboBox1 As ComboBox
Private pb As PictureBox
Private pc As Picture = Picture["icon:/32/star"]
Public Sub Form_Open()
With ComboBox1 = New ComboBox(Me) As "ComboBox1"
.X = 100
.Y = 100
.W = pc.W * 4
.H = pc.H
.List = ["1", "2", "3"]
End With
With pb = New PictureBox(ComboBox1)
.X = (ComboBox1.W - pc.W) / 2
.Y = 0
.W = ComboBox1.W
.H = pc.H
End With
End
Public Sub ComboBox1_Click()
Dim im1 As Image = pc.Image
Dim im2 As Image = New Image(pc.W * 4, pc.H, Color.White, Image.Standard)
Select Case ComboBox1.Text
Case "1"
With pb
.Image = im2.DrawImage(im1, 20, 0, pc.W, pc.H)
End With
Case "2"
With pb
.Image = im2.DrawImage(im1, 20, 0, pc.W, pc.H)
.Image = .Image.DrawImage(im1, 56, 0, pc.W, pc.H)
End With
Case "3"
With pb
.Image = im2.DrawImage(im1, 20, 0, pc.W, pc.H)
.Image = .Image.DrawImage(im1, 56, 0, pc.W, pc.H)
.Image = .Image.DrawImage(im1, 92, 0, pc.W, pc.H)
End With
End Select
End
Public Sub Form_Open()
Dim hCombo As ComboBox
If Fonts.Exist("D050000L") Or If Fonts.Exist("D050000L [urw]") Or If Fonts.Exist("D050000L [URW ]") Then
With hCombo = New ComboBox(Me) As "ComboBox1"
.X = 50
.Y = 50
.H = 35
.W = 130
.Font = Font["D050000L,Bold,14"]
.Foreground = Color.RGB(197, 166, 67)
.List = ["MMMMM", "MMMM", "MMM", "MM", "M"] ' <--- Estrellas
End With
Else
Message.Warning("Tienes que instalar el Font D050000L")
Me.Close
Endif
End
Public Sub Form_Open()
Dim ComboBox1 As ComboBox
With ComboBox1 = New ComboBox(Me) As "ComboBox1"
.X = 50
.Y = 50
.H = 35
.W = 140
.Foreground = Color.RGB(197, 166, 67)
.Font.Size = 20
For b As Byte = 5 DownTo 1
.Add(String(b, String.Chr(&2605)))
Next
End With
End