INTERACT FORUM

Windows => Plug-in Development => Topic started by: KingSparta on August 24, 2002, 06:07:31 am

Title: Filling Up A ListBox On Program Init
Post by: KingSparta 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?
Title: RE:Filling Up A ListBox On Program Init
Post by: RhinoBanga 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.
Title: RE:Filling Up A ListBox On Program Init
Post by: KingSparta 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.