Y
Yiran5953
Guest
Hi all,
I would like to build a picture displayer by VB.net. Is there any statement other than 'if...elseif...then' can search from a large number of pictures in the 'myresources'?
For example, currently, I'm using:
Dim RM As Resources.ResourceManager
RM = New Resources.ResourceManager("test.Resources", System.Reflection.Assembly.GetExecutingAssembly)
If ComboBox1.Text = "MV" And ComboBox2.Text = "70" And ComboBox3.Text = "23" And ComboBox4.Text = "1150" And ComboBox5.Text = "165)" Then
ResultsPictureBox.Image = RM.GetObject("MV_70_165_2_1150")
End If
But it fails to work when there's a lot of pictures.
Is there any other statements I can use?
Best regards.
Continue reading...
I would like to build a picture displayer by VB.net. Is there any statement other than 'if...elseif...then' can search from a large number of pictures in the 'myresources'?
For example, currently, I'm using:
Dim RM As Resources.ResourceManager
RM = New Resources.ResourceManager("test.Resources", System.Reflection.Assembly.GetExecutingAssembly)
If ComboBox1.Text = "MV" And ComboBox2.Text = "70" And ComboBox3.Text = "23" And ComboBox4.Text = "1150" And ComboBox5.Text = "165)" Then
ResultsPictureBox.Image = RM.GetObject("MV_70_165_2_1150")
End If
But it fails to work when there's a lot of pictures.
Is there any other statements I can use?
Best regards.
Continue reading...