PlanetSquires Forums

Support Forums => PlanetSquires Software => Topic started by: veltesian on August 07, 2020, 12:24:16 AM

Title: question about listbox(s)
Post by: veltesian on August 07, 2020, 12:24:16 AM
i was wondering how can a listbox be populated with items at runtime or when the form loads?
Title: Re: question about listbox(s)
Post by: Paul Squires on August 07, 2020, 04:04:44 PM
You can initialize, load or modify the listbox when the form loads by manipulating the listbox during the Form's Load event.
Title: Re: question about listbox(s)
Post by: veltesian on August 07, 2020, 09:56:01 PM
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...
Title: Re: question about listbox(s)
Post by: jermy on August 08, 2020, 09:26:09 AM
no that won't work, maybe you can check the WinFBE editor help
Title: Re: question about listbox(s)
Post by: veltesian on August 08, 2020, 10:52:56 PM
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....