jsctechy
asked on
how to change the content of a listbox dinamically?
hi,
Is there a way that i can change the contents of a listbox? i have a listbox that not always contains the same amount of items and i need to select an item an right click and have the name be enable to change. how can i do this?
i have the event for the right click like this:
Private Sub ListBox2_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.Mouse EventArgs) Handles ListBox2.MouseClick
If e.Button = Windows.Forms.MouseButtons .Right Then
End If
thanks,
jsctechy
Is there a way that i can change the contents of a listbox? i have a listbox that not always contains the same amount of items and i need to select an item an right click and have the name be enable to change. how can i do this?
i have the event for the right click like this:
Private Sub ListBox2_MouseClick(ByVal sender As Object, ByVal e As System.Windows.Forms.Mouse
If e.Button = Windows.Forms.MouseButtons
End If
thanks,
jsctechy
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
So is this providing what you need? I also see that you switched from trying to use the MouseClick to using MouseDown event as I showed in my sample code, good choise.
ASKER
yes, i wasnt sure why i was not getting the right click
Thanks for your advise
Thanks for your advise
Not a problem, glad to help. ;=)
ASKER
Open in new window