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
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
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:)
whats that vbOkOnly thingie?Quote:
Originally posted by sridharavijay
Msgbox "Are you mad? Click once!",vbOkOnly,"Crack"
and i want the box to display 2 options which will do different things
Ok i figured it out thx alot :)
VB Code:
Private Sub lvwRewards_DblClick() MsgBox "Are you mad? Click once!", vbYesNo, "Confirm Redemption?" End Sub
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