Author Topic: Drop Downs  (Read 201 times)

Drop Downs
« on: March 01, 2019, 06:27:19 PM »
I have a drop down inserted to the form and one item showing. Now I need 4 items in the list.

How do I add more items?

Brian.

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Drop Downs
« Reply #1 on: March 01, 2019, 08:23:07 PM »
AddItem ListBox1, "New item" 'ListBox1 should be the name you gave to the control you added to your form.

More list methods here: https://github.com/FellippeHeitor/InForm/wiki/List-methods

Offline FellippeHeitor

  • QB64 Developer
  • LET IT = BE
    • QB64.org
Re: Drop Downs
« Reply #2 on: March 01, 2019, 08:25:08 PM »
Now, if you want to add more items at design time, then you just separate them using a new line escape sequence (\n), as in Item 1\nItem 2\nItem 3\nEtc...

Re: Drop Downs
« Reply #3 on: March 01, 2019, 08:29:57 PM »
Thank you.