Click to See Complete Forum and Search --> : can i generate an event?


coolily
January 21st, 2000, 01:50 PM
i want generate a click event in a list box without actually clicking.ie, through the program.

exact problem:
at the end of adding items in a listbox,i would like to eliminate multiple entries.
in my click event is the code for the same.can i generate a click event through code?

Aaron Young
January 21st, 2000, 02:07 PM
If you have Code in your Lists Click Event, just Call it like you would a Sub, ie.

List1_Click

Aaron Young
Analyst Programmer
ajyoung@pressenter.com
aarony@redwingsoftware.com

coolily
January 21st, 2000, 02:39 PM
are u sure?
can i do that from a module?
formname.list1_click does not seem to work for me.

Aaron Young
January 21st, 2000, 02:49 PM
Now you never mentioned wanting to call it from a Module...

To do that you would have to change the List1_Click Sub Declaration from Private to Public, then use:

Formname.List1_Click

Aaron Young
Analyst Programmer
ajyoung@pressenter.com
aarony@redwingsoftware.com