I need to include item in the combobox List but using a textbox.
when I type in the textbox imediactly save in the list of combobox for ever.
And when I select the item in the combobox and press delete key the item must be delected in the list of combobox.
I need so much resolve that.
Please!
Thanks.
textbox vs comboboxtextbox populating combobox.list
Page 1 of 1
4 Replies - 2732 Views - Last Post: 19 April 2009 - 02:09 AM
Replies To: textbox vs combobox
#2
Re: textbox vs combobox
Posted 25 February 2009 - 09:53 AM
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Post your code like this:
Thanks.
Post your code like this:
Thanks.
#3
Re: textbox vs combobox
Posted 25 February 2009 - 11:07 AM
JackOfAllTrades, on 25 Feb, 2009 - 08:53 AM, said:
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.
Post your code like this:
Thanks.
Post your code like this:
Thanks.
Private Sub cmdnovotipo_Click()
Dim lista As Integer
lista = Data2.Recordset(Tipos.tipo)
If Nome.Text <> "" Then
Data2.Recordset.AddNew
Data2.Recordset.Update
cbotipo.AddItem (Nome.Text)
cbotipo.List (lista)
cbotipo.Refresh
Nome.Text = ""
End If
End Sub
#4
Re: textbox vs combobox
Posted 19 April 2009 - 02:08 AM
a little hint:
Private Sub Form_Load() Static c As String End Sub Private Sub Text1_Change() c = Text1.Text End Sub
#5
Re: textbox vs combobox
Posted 19 April 2009 - 02:09 AM
@WATAM, please post your code in the [code] tags.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|