|
-
Apr 15th, 2003, 04:32 AM
#1
Thread Starter
Member
How to pop up a box(dialog?) on listview doubleclick(RESOLVED)
When user doubleclicks on a row in the listview, i want to pop up a box that displays something like:
This will make you mad.Continue?
btnYes btnNo
Last edited by yyayl; Apr 15th, 2003 at 04:44 AM.
-
Apr 15th, 2003, 04:35 AM
#2
Fanatic Member
go to listview events and select
DblClick...
and write in that code
I think the sub would look like
Private sub lsvItems_DblClick()
Msgbox "Are you mad? Click once!",vbOkOnly,"Crack"
End Sub
HTH
-
Apr 15th, 2003, 04:37 AM
#3
Thread Starter
Member
Originally posted by sridharavijay
Msgbox "Are you mad? Click once!",vbOkOnly,"Crack"
whats that vbOkOnly thingie?
and i want the box to display 2 options which will do different things
-
Apr 15th, 2003, 04:44 AM
#4
Thread Starter
Member
Ok i figured it out thx alot 
VB Code:
Private Sub lvwRewards_DblClick()
MsgBox "Are you mad? Click once!", vbYesNo, "Confirm Redemption?"
End Sub
-
Apr 15th, 2003, 04:47 AM
#5
Addicted Member
Private sub lsvItems_DblClick()
Msgbox "Are you mad? Click once!",vbyesno,"Crack"
End Sub
the vbOkthingy is pre defined values that will create the buttons in the msgbox. Eg, vbYesNo will put a Yes and No button in the Msgbox. For moree info on this check in MSDN
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
|