Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7407239
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:40:58+00:00 2026-05-29T05:40:58+00:00

I have a little problem that i’m creating a simple search application which have

  • 0

I have a little problem that i’m creating a simple search application which have a TEXT box and some combo boxes and radio buttons and a search button.
radio button names “Videos”, “Audios”, “Pics” etc..
when radiobutton of video is selected, a combobox is appear having options “YouTube”, “Metacafe” etc
I want that when i click “Metecafe” item in combobox of video, an other combo box appear having items Like “Entertainment”, “How To”, “+18” etc(categories of video search).
so “HOW TO SHOW/HIDE AN OTHER COBOBOX WITH THE HELP OF A COMBOBOX ITEM”
hope you have understood my problem.
screen shoot
i don’t know it is possible or not becux i’m beginner in VB
my English is not so good so please see below code:)

if combobox1.SelectedItem = "PAKISTAN" Then
    combobox2.Visible = True
End if

if combobox1.SelectedItem = "INDIA" Then
    combobox3.visible = true
    combobox2.visible = false
 End if

Obviously this code is wrong, this is a example that what i want to do
Thanks to all in advance..

NOTE:
i have try this codes but its not working..

if ComboBox1.Items(ComboBox1.SelectedIndex).ToString() = "PAKISTAN" Then

    ComboBox2.Visible = True

End if

sorry for spell and grammatical mistakes:(

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T05:40:59+00:00Added an answer on May 29, 2026 at 5:40 am

    Try using the SelectedItem Property like this

    Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
        If ComboBox1.SelectedItem.ToString = "PAKISTAN" Then
            ComboBox2.Visible = True
        End If
    End Sub
    

    Since you are wanting to check for multiple country’s you can use a Select Case Statement like this

    Private Sub ComboBox1_SelectedIndexChanged(sender As System.Object, e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged
    
        Select Case ComboBox1.SelectedItem.ToString
            Case "PAKISTAN"
                ComboBox2.Visible = True
                ComboBox3.Visible = False
            Case "INDIA"
                ComboBox3.Visible = True
                ComboBox2.Visible = False
            Case Else
                ComboBox2.Visible = False
                ComboBox3.Visible = False
        End Select
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this little problem, that I cannot figure out which arguments to pass
i have a little problem implementing some serialization/deserialization logic. I have several classes that
I have a little problem, I'm trying to input some data that I get
I have a little problem with a simple vbScript. The script has to run
I have a little problem with some jquery and http://www.mikage.to/jquery/jquery_history_noc.html The function works great,
I have a little problem. I had some JComboBox to a JDialog but they
I have a little problem that involves modeling a state machine. I have managed
I have a little problem that I don't understand. I have a db that
I have a little problem with my regular expression, that I use in PHP.
I have a little problem, I hope U can help me;) Trouble is, that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.