PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: question about listbox(s)  (Read 239 times)

veltesian

  • Little Newbie
  • *
  • Posts: 47
question about listbox(s)
« on: August 06, 2020, 11:54:16 PM »

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

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 9313
  • Windows 10
    • PlanetSquires Software
Re: question about listbox(s)
« Reply #1 on: August 07, 2020, 03:34:44 PM »

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

veltesian

  • Little Newbie
  • *
  • Posts: 47
Re: question about listbox(s)
« Reply #2 on: August 07, 2020, 09:26: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...
Logged

jermy

  • Junior Member
  • **
  • Posts: 60
Re: question about listbox(s)
« Reply #3 on: August 08, 2020, 08:56:09 AM »

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

veltesian

  • Little Newbie
  • *
  • Posts: 47
Re: question about listbox(s)
« Reply #4 on: August 08, 2020, 10:22: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....
« Last Edit: August 08, 2020, 10:31:54 PM by veltesian »
Logged