question about listbox(s)

Started by veltesian, August 07, 2020, 12:24:16 AM

Previous topic - Next topic

veltesian

i was wondering how can a listbox be populated with items at runtime or when the form loads?

Paul Squires

You can initialize, load or modify the listbox when the form loads by manipulating the listbox during the Form's Load event.
Paul Squires
PlanetSquires Software

veltesian

well i could take a look at the template where it lets you build a listbox on its own form window....
i could look to that & see if there's any programming code i could use to code the initialize/etc events
at form load... otherwise i wont know what programming code i would need to use for that...

originally i had a thought it could be as easy as: Form1.ListBox1.AddItem (0)... & so on. but
i don't think that will work...

jermy

no that won't work, maybe you can check the WinFBE editor help

veltesian

#4
thanks jermy for showing me that....

at first i was confused in how/where to look for info on those controls. i did see the tab "controls"
at first i didnt think of it as a clickable tab but then i looked i was unsure how to word the
programming code there. i realize that it be a silly thing for me to not think of that.
i'll begin to work on using some of those snips i see in the newly seen help area....
thanks again jermy & to everyone in the forum who has helped me learn.

it is very much appreciated....