473,382 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

how can we do this in combobox

284 100+
i am using vb6
what i want is i place a combo box on my form add some name to
it
now when we click on combo box on most right (down arrow) a drop
down list apperat showning all the names

can we call this drop down list on any other event like i want when
the user type someting on a combobox the list appears with out clicking it
with mouse.

hope you understand what i mean
thanks
Mar 30 '08 #1
5 1139
lee123
556 512MB
what do you mean, when you type in a letter the list will open up. i know there is a property in the property box (on your left) for the combo box for when you type in a letter what ever name you have in the combo box that's where it will begin it search (but it won't open up) i believe it under the "Style" event

if this isn't what your talking about then post your question with a little more detail so someone else can answer you better

lee123
Mar 30 '08 #2
muddasirmunir
284 100+
simply my question is we have a combo box when click on

most righ of the combo box list of all the items

appears just below OK

i just want that the same list should appear when the user get

focus on combo box with out cliking it with mouse

hope you understand
what do you mean, when you type in a letter the list will open up. i know there is a property in the property box (on your left) for the combo box for when you type in a letter what ever name you have in the combo box that's where it will begin it search (but it won't open up) i believe it under the "Style" event

if this isn't what your talking about then post your question with a little more detail so someone else can answer you better

lee123
Mar 31 '08 #3
simply my question is we have a combo box when click on

most righ of the combo box list of all the items

appears just below OK

i just want that the same list should appear when the user get

focus on combo box with out cliking it with mouse

hope you understand

Hi,

I think In such cases u can use listbox instead of a combo box....
Mar 31 '08 #4
QVeen72
1,445 Expert 1GB
HI,

In ComboBox's GotFocus event write this code:
(It will automatically drop-down)

Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo1_GotFocus()
  2.     SendKeys "%{DOWN}"
  3. End Sub
  4.  
Regards
Veena
Mar 31 '08 #5
mafaisal
142 100+
Hello

Or U can use

Expand|Select|Wrap|Line Numbers
  1. Private Sub Combo1_GotFocus()
  2.     SendKeys "{F4}"
  3. End Sub
  4.  

Faisal
Mar 31 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Oren Kaplan | last post by:
Hello, I posted a msg on the Access-related groups in hope someone there could help me but since almost two days have past and I didnt get a response (Im a bit hard pressed with the problem) I...
3
by: Idelso Quintero | last post by:
Hi everyone: Could someone look into what could possibly be wrong in these lines of code? It looks all good to me but for some reason the combo box that is created, is not shown with all the...
2
by: bds | last post by:
I'm new to .net 2.0 and I'm trying to figure out the best way to create a form that has a couple of controls and one of the controls is a combo box with a data bound list of items from another...
3
by: ColinWard | last post by:
Hi again. I am trying to figure out how to make sure that a value has been selected from a combobox on a form. I have tried using isnull(comboboxname.text) and isempty(comboboxname.text)and...
3
by: jim | last post by:
Hi NG I have a form in which I use a combobox - the content of the combobox depend on the customername shown in a textbox. Now my problem is that I want the content in the combobox to change...
6
by: Henry | last post by:
I was trying to derive a class from System.Windows.Forms.ComboBox. My goal was to create a class that loaded its own data. I did not want to create too many objects, so I tried to share a Database...
5
by: active | last post by:
I tried to use a datasource with a combobox and it didn't work completely so I build a small test that was much more straight forward then the app. The test was to see if the combobox dropdown...
10
by: Doug Bell | last post by:
Hi I am still having problems with Tabbing through a DataGrid with a DataGridComboBox Column. I need to allow the User to Type the value into the ComboBox so consequently its ComboBoxStyle is...
1
by: Aleksey Timonin | last post by:
Hi guys, I have a comboBox binded to DataTable: comboBox.DataSource = MyDataTable; comboBox.ValueMember = "id"; comboBox.DisplayMember = "id";
2
Alireza355
by: Alireza355 | last post by:
Dear friends, I have 2 comboboxes in a form. I want the first combobox to show all records of my table if the second combobox is null. But if the second combobox is not null, I want the first...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.