Solved

Combo Box and vb.net

Posted on 2006-11-28
3
754 Views
Last Modified: 2012-06-27
How do i make the combobox dropdown list collapse upon user input. For example when the user clicks and input something in the text area for combo box, i want the drop down list within the combo box to collapse to show the already included items.


0
Comment
Question by:janjuama84
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 10

Expert Comment

by:Kinger247
ID: 18029519
could try :

   Private Sub ComboBox1_GotFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles ComboBox1.GotFocus
        ComboBox1.DroppedDown = True
    End Sub
0
 
LVL 23

Accepted Solution

by:
apresto earned 500 total points
ID: 18029551
private void comboBox_TextChanged(object sender, EventArgs e)
        {
            cb.DroppedDown = true;
        }

thats the c# for it anyway for when you enter text
0
 
LVL 23

Expert Comment

by:apresto
ID: 18029554
please disregard my comment - apologies Kinger, didnt think to refresh :o)
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question