Board index » Visual Studio » Help with DataCombo.Text!
|
ChipRose
|
|
ChipRose
|
Help with DataCombo.Text!
Visual Studio195
Hi, I have a datacombo which holds a list of dates i.e. 02/01/2006 01/01/2006 31/12/2005 I would like the datacombo.text to display the first record in the datacombo i.e. 02/01/2006 without having to actually select it from the lost. Is this possible? Appreciate the help Thanks Damon - |
| David
Registered User |
Mon Jan 16 07:51:43 CST 2006
Re:Help with DataCombo.Text!
Why don't you use a standard combo set to the dropdown list style? It isn't
hard to populate a combo with code. "Damon" <nonsense@nononsense.com>wrote in message QuoteHi, - |
| Damon
Registered User |
Mon Jan 16 09:04:16 CST 2006
Re:Help with DataCombo.Text!
I have used a standard combo instead but how can I display the last item in
the list as the combobox.text? Appreciate the help. "David J Mark" <nntp45534-22@newsdesk.net>wrote in message QuoteWhy don't you use a standard combo set to the dropdown list style? It - |
| Rick
Registered User |
Mon Jan 16 09:18:07 CST 2006
Re:Help with DataCombo.Text!QuoteI have used a standard combo instead but code. For your question, this line will do what you want... Combo1.ListIndex = Combo1.ListCount - 1 Rick - |
