Re: Cannot clear Combo box at Runtime (Windows Forms)



"Philip" <Philip@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:97A7E97C-1C96-41B7-A52E-75C57DD128DD@xxxxxxxxxxxxx
Hi,

I have a combo box on my form, populated by looping through a
recordset.

When the user chooses to connect to a different database, obviously I
want the combo box to be cleared.

But the below code doesn't clear the combo:
cboStoredProcs.Items.Clear()


--
try asking in a group with "dotnet" in the name; this group is for VB 6.0
and earlier
VB.Net and VB 200x are Not.VB

.



Relevant Pages

  • Re: Need help looping checked/unchecked
    ... I have a set of say, 10 questions that are in a database. ... I'm looping through the recordset, and putting the questions in a form. ...
    (comp.lang.php)
  • Re: Best way to call functions?
    ... > users to search a large database and then returns formatted results. ... Ignore the following if you mean that you are opening a database connection ... You may wish to consider using GetRows arrays to avoid all the recordset ... looping - looping through recordsets is incredibly slow compared to looping ...
    (microsoft.public.inetserver.asp.general)
  • Re: help with update
    ... You need to specify which table within the database you want to update, ... while it would be possible to do it by looping through a recordset, ... go through the entirity of a database and check the value of each ...
    (microsoft.public.access.formscoding)
  • Re: Need help looping checked/unchecked
    ... I have a set of say, 10 questions that are in a database. ... I'm looping through the recordset, and putting the questions in a form. ...
    (comp.lang.php)
  • Re: How to import certain fields from access database?
    ... I added the code but its not displaying any values in the textboxes. ... The first imports data from a database ... Dim myActiveRecord As Recordset ...
    (microsoft.public.word.mailmerge.fields)

Loading