I'm totally new in using VB and I want your help.
I need a sample code that has a (combobox) and an (add) button that makes the user clicks on the (add) button to add text to the (combobox).

Thank you.

Public Class Form1

    Private Sub btnAdd_Click(sender As System.Object, e As System.EventArgs) Handles btnAdd.Click


    End Sub

End Class

Each time you click "Add", the current date/time will be added to the combobox. Just replace the argument with the text you want to add.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.