Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two simple questions 1

Status
Not open for further replies.

MrMoocow

Programmer
May 19, 2001
380
US
I have two simple questions,

First i know how to remove items from a list 9listname.removeitem(number) but how do I now which is SELECTED.

Two: is it possible to change the color of the menu (the menu you make pressing crtl+e of course).


Thanks
Moocout.

"I hate talking to laweyers" - Guybrushh Threepwood
"Not as much as sthey do to you" Elaine Threepwood Governer of Melee Island
 
List. If you you DO NOT have multiselect then list.listindex points to the selected item. The value will be -1 if no item is selected.
You can also use the SELECTED property in all cases.
Code:
Dim I as long
With .List
For I = 0 To .ListCount - 1
    if .Selected (I) = true then
        ....
    end if
Next
End With
 
Thank you very much!
Any one have any idea about that menu bar question though???


"Thats the second biggest monkey head I've seen" Guybrush Threepwood
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top