Click here to Skip to main content
16,004,882 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionhow to handle itemCheck Event & Listview DoubleClick event in vb.net Pin
Lingarajapatil18-Mar-04 0:57
Lingarajapatil18-Mar-04 0:57 
AnswerRe: how to handle itemCheck Event & Listview DoubleClick event in vb.net Pin
Dave Kreskowiak18-Mar-04 5:55
mveDave Kreskowiak18-Mar-04 5:55 
AnswerRe: how to handle itemCheck Event & Listview DoubleClick event in vb.net Pin
Dave Kreskowiak18-Mar-04 7:03
mveDave Kreskowiak18-Mar-04 7:03 
GeneralRe: how to handle itemCheck Event & Listview DoubleClick event in vb.net Pin
Lingarajapatil23-Mar-04 21:46
Lingarajapatil23-Mar-04 21:46 
GeneralRe: how to handle itemCheck Event & Listview DoubleClick event in vb.net Pin
Dave Kreskowiak24-Mar-04 0:32
mveDave Kreskowiak24-Mar-04 0:32 
GeneralContext Menu Help Pin
sasijrao17-Mar-04 16:22
sasijrao17-Mar-04 16:22 
GeneralRe: Context Menu Help Pin
SJ171721-Mar-04 8:37
SJ171721-Mar-04 8:37 
GeneralRe: Context Menu Help Pin
Bernhard Hofmann24-Mar-04 4:21
Bernhard Hofmann24-Mar-04 4:21 
Sasidhar

You need to register an event handler for each menu item as you add it.
<br />
	Dim mnuItem As MenuItem<br />
	mnuItem = New Windows.Forms.MenuItem(MenuItemName, New System.EventHandler(AddressOf Me.MenuItem_Click))<br />
	mnuMain.MenuItems.Add(mnuItem)


And then you obviously need the event handler as well. Use the sender.index value to determine which item in the menu has been clicked.

Private Sub MenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
    Dim ItemIx As Integer = sender.index<br />
End Sub


Hope this helps
Bernhard

Don't worry, nobody lives forever.
GeneralForum Board Pin
mil_an17-Mar-04 13:59
mil_an17-Mar-04 13:59 
GeneralRe: Forum Board Pin
Hesham Amin18-Mar-04 0:39
Hesham Amin18-Mar-04 0:39 
GeneralInserting Images in Excel Spreadsheet Pin
Wilbur J. Pereira17-Mar-04 9:57
Wilbur J. Pereira17-Mar-04 9:57 
GeneralList View Coding Pin
Member 95429117-Mar-04 7:54
Member 95429117-Mar-04 7:54 
GeneralRe: List View Coding Pin
Dave Kreskowiak17-Mar-04 8:43
mveDave Kreskowiak17-Mar-04 8:43 
GeneralRe: List View Coding Pin
yousafkamal20-Mar-04 7:25
yousafkamal20-Mar-04 7:25 
QuestionError !! During instaltion of .NET application ??? Pin
Member 76608416-Mar-04 18:42
Member 76608416-Mar-04 18:42 
AnswerRe: Error !! During instaltion of .NET application ??? Pin
FruitBatInShades16-Mar-04 22:41
FruitBatInShades16-Mar-04 22:41 
GeneralRe: Error !! During instaltion of .NET application ??? Pin
Member 76608417-Mar-04 0:45
Member 76608417-Mar-04 0:45 
GeneralThe ListManager's position must be equal to rowNum Pin
rdk71716-Mar-04 15:54
rdk71716-Mar-04 15:54 
GeneralType 'DataListCommandEventArgs' is not defined. Pin
Anonymous16-Mar-04 6:52
Anonymous16-Mar-04 6:52 
GeneralCheckedlistbox control Pin
RBCC16-Mar-04 6:01
RBCC16-Mar-04 6:01 
GeneralRotating Dice Pin
RBCC16-Mar-04 5:57
RBCC16-Mar-04 5:57 
GeneralRe: Rotating Dice Pin
Dave Kreskowiak16-Mar-04 9:09
mveDave Kreskowiak16-Mar-04 9:09 
GeneralRe: Rotating Dice Pin
Anonymous16-Mar-04 9:13
Anonymous16-Mar-04 9:13 
GeneralRe: Rotating Dice Pin
Dave Kreskowiak16-Mar-04 9:28
mveDave Kreskowiak16-Mar-04 9:28 
GeneralRe: Rotating Dice Pin
RBCC16-Mar-04 9:39
RBCC16-Mar-04 9:39 

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.