how to pass listbox as parameter in vb.net?

Joined
Jul 8, 2006
Messages
1
Reaction score
0
hi
i've tried using

Public Function Collectibles(ByVal listboxname As listbox)
End Function

but it couldnt work.
it ccame out with this error msg.
"type 'listbox' is not defined"
anyone know how to make this work?
 
Joined
Mar 5, 2006
Messages
1,900
Reaction score
2
xxradiantxx said:
hi
i've tried using

Public Function Collectibles(ByVal listboxname As listbox)
End Function

but it couldnt work.
it ccame out with this error msg.
"type 'listbox' is not defined"
anyone know how to make this work?
Come out of the application, turn off the pc, get a beer, open it up & sit back and enjoy. :D
 
Joined
Jun 13, 2005
Messages
148
Reaction score
0
declare listbox name as array, then call it passing in the forms listbox...i dont think listbox is a existing object you can declare
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top