|
-
Nov 20th, 2000, 11:10 AM
#1
Thread Starter
Fanatic Member
-
Nov 20th, 2000, 11:23 AM
#2
Well ...
For the first question:
Put the following code in your program.
Code:
Private Sub List1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyF2 Then
If List1.ListIndex <> -1 Then
List1.RemoveItem List1.ListIndex
End If
End If
End Sub
-
Nov 20th, 2000, 11:51 AM
#3
Thread Starter
Fanatic Member
Thanks!
Any ideas for the drop down right click menu?
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Nov 20th, 2000, 11:56 AM
#4
popup menu
ok...create a menu with the menu editor.
for the uppermost level...Uncheck visible
then add delete ( this one leave visible)
menu----
pop
---Delete
pop (name it mnuPop) Uncheck visible
---Delete (name it whatever) and leave visible checked
click ok
menu will not appear
goto code window...select you listbox...select mousedown
Code:
if buttone = 2 then me.popupmenu mnuPop
then just code the delete menu choice...
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Nov 20th, 2000, 12:02 PM
#5
For right click, take a look at these links, that Jop found:
http://www.mvps.org/vbnet/code/lista...eclick-two.htm
http://www.mvps.org/vbnet/code/lista...mouseclick.htm
http://www.mvps.org/vbnet/code/lista...lick-three.htm
geoff_xrx, spelled button wrong 
If button = 2....
And you don't need Me.
PopupMenu by itself can be used.
PopupMenu MyMenu
But really, for the right click and then popupmenu, you should take a look at the links above.
-
Nov 20th, 2000, 12:13 PM
#6
ooops
buttone is the italian button. 
thanks matthew...didnt know about not using me. cool
P.S....How do you get the smiles in the post?
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Nov 20th, 2000, 12:16 PM
#7
Thread Starter
Fanatic Member
I can't thank enough you guys 
Best regards to you all,
W.
When your car breaks down,
close all windows and retry 
=> please rate all users posts! <=
-
Nov 20th, 2000, 12:20 PM
#8
Click the <-smilie to get a list of other smilies.
-
Nov 20th, 2000, 12:20 PM
#9
Fanatic Member
Re: ooops
Originally posted by geoff_xrx
How do you get the smiles in the post?
Look here.
-
Nov 20th, 2000, 12:21 PM
#10
Fanatic Member
Matthrew, I didn't see your post...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|