INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Filling Up A ListBox On Program Init  (Read 1333 times)

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
Filling Up A ListBox On Program Init
« on: August 24, 2002, 06:07:31 am »

Filling up a ListBox When the program Initializes its self don't seem to work.

Is there a way so the user does not need to push a Command button after the program loads?
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
RE:Filling Up A ListBox On Program Init
« Reply #1 on: August 24, 2002, 09:04:20 am »

Works fine here dude.

I tried this:

Public Function Init(ByVal MediaJukebox As Object)
   
   ' set the global Media Jukebox object on init
   ' (Media Jukebox will call this function when the plugin starts)
   Set g_MJ = MediaJukebox
   
   btnListPlayingNow_Click
   
End Function


And this:

Private Sub UserControl_Initialize()
   lbStatus.Clear
   For z = 0 To 100
       lbStatus.AddItem "Hello King"
   Next z
End Sub



And in both cases the listbox was filled.


Must be something in your code.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20048
RE:Filling Up A ListBox On Program Init
« Reply #2 on: August 25, 2002, 08:44:04 am »

RhinoBanga

I just tried it, Thanks

Learned something yesterday and today too.

The weekend has been fruit full.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio
https://MyAAGrapevines.com
Fayetteville, NC, USA
Pages: [1]   Go Up