Click here to Skip to main content
15,916,318 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow can I access a class written in C++ in a VB project?? Pin
Logan from Singapore22-Feb-05 22:59
Logan from Singapore22-Feb-05 22:59 
AnswerRe: How can I access a class written in C++ in a VB project?? Pin
Dave Kreskowiak23-Feb-05 0:41
mveDave Kreskowiak23-Feb-05 0:41 
Generalproblems impleminting ListView.ListViewItemCollection.Contains Pin
ASDEF000122-Feb-05 19:36
ASDEF000122-Feb-05 19:36 
Generalwell in order to solve the problem i used IEnumorator Pin
ASDEF000122-Feb-05 21:29
ASDEF000122-Feb-05 21:29 
QuestionHow to convert a htm page to asp page Pin
GoldenStar22-Feb-05 14:34
GoldenStar22-Feb-05 14:34 
AnswerRe: How to convert a htm page to asp page Pin
Christian Graus22-Feb-05 14:49
protectorChristian Graus22-Feb-05 14:49 
GeneralRe: How to convert a htm page to asp page Pin
GoldenStar22-Feb-05 15:40
GoldenStar22-Feb-05 15:40 
GeneralContext menu in different listviews Pin
22-Feb-05 11:00
suss22-Feb-05 11:00 
Howdy.

I have a program with 4 different listviews.
I have also created a context menu that contains tasks that should be possible to perform in the different listviews.

In the four different listviews the exact same tasks should be performed so I need only one context menu, but how do I know which listview the call comes from when the context menu is activated?

I.E:

Private Sub listView_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseUp, ListView2.MouseUp, ListView3.MouseUp, ListView4.MouseUp
     ' Checking the Mouse right Button
     If e.Button = MouseButtons.Right Then
          Dim myLV As ListView = sender
          myLV.ContextMenu.Show(sender, New Point(e.X, e.Y))
     End If
End Sub

and then:

Private Sub MenuItem17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MenuItem17.Click
     listview_that_the_menu_was_started_in.Items.Clear()
End Sub


How do solve?

Thanks for assistance.

Anders Liden
Gothenburg, Sweden.
GeneralDifference between CreateObject and New method Pin
Mahesh167922-Feb-05 8:26
Mahesh167922-Feb-05 8:26 
GeneralRe: Difference between CreateObject and New method Pin
Christian Graus22-Feb-05 8:47
protectorChristian Graus22-Feb-05 8:47 
GeneralCombo Hack Pin
buildero22-Feb-05 4:19
buildero22-Feb-05 4:19 
GeneralRe: Combo Hack Pin
Colin Angus Mackay22-Feb-05 4:34
Colin Angus Mackay22-Feb-05 4:34 
Generalopening a form from a string name Pin
Shawn200022-Feb-05 3:18
Shawn200022-Feb-05 3:18 
GeneralRe: opening a form from a string name Pin
Dave Kreskowiak22-Feb-05 3:58
mveDave Kreskowiak22-Feb-05 3:58 
GeneralRe: opening a form from a string name Pin
Shawn200022-Feb-05 4:36
Shawn200022-Feb-05 4:36 
GeneralRe: opening a form from a string name Pin
Dave Kreskowiak22-Feb-05 6:09
mveDave Kreskowiak22-Feb-05 6:09 
GeneralPrinting + Encoding Magstripe Pin
YorkTech22-Feb-05 0:02
YorkTech22-Feb-05 0:02 
GeneralRe: Printing + Encoding Magstripe Pin
Dave Kreskowiak22-Feb-05 0:48
mveDave Kreskowiak22-Feb-05 0:48 
GeneralRe: Printing + Encoding Magstripe Pin
YorkTech22-Feb-05 7:11
YorkTech22-Feb-05 7:11 
GeneralRe: Printing + Encoding Magstripe Pin
Dave Kreskowiak22-Feb-05 7:32
mveDave Kreskowiak22-Feb-05 7:32 
GeneralRe: Printing + Encoding Magstripe Pin
YorkTech23-Feb-05 5:22
YorkTech23-Feb-05 5:22 
QuestionRe: Printing + Encoding Magstripe Pin
coderam1-Jun-09 1:30
coderam1-Jun-09 1:30 
Generalthread timer abort Pin
manasrahfantom21-Feb-05 23:49
manasrahfantom21-Feb-05 23:49 
GeneralRe: thread timer abort Pin
Dave Kreskowiak22-Feb-05 0:39
mveDave Kreskowiak22-Feb-05 0:39 
GeneralRe: thread timer abort Pin
manasrahfantom22-Feb-05 0:57
manasrahfantom22-Feb-05 0:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.