Greenhand asks for help regarding VB.net search function

Yiran Liu 21 Reputation points
2020-09-07T07:34:09.46+00:00

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.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,827 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 28,951 Reputation points Microsoft Vendor
    2020-09-07T08:30:15.17+00:00

    Hello Yiran,

    From your description, it seems your issue is more related to VB .net. As you know, VB .net is not currently supported in the Microsoft Q&A forums, the supported products are listed over there: https://video2.skills-academy.com/en-us/answers/products/ (more to be added later on).

    I suggest you can redirect and post a new thread to our MSDN Visual Basic forum.

    Sincerely,
    Tianyu

    • If the answer is helpful, please click "Accept Answer" and upvote it.
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    0 comments No comments

0 additional answers

Sort by: Most helpful