Click here to Skip to main content
15,914,162 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCreating wav files in VB.NET Pin
Benny_Lava27-Sep-07 23:53
Benny_Lava27-Sep-07 23:53 
AnswerRe: Creating wav files in VB.NET Pin
Vasudevan Deepak Kumar28-Sep-07 1:03
Vasudevan Deepak Kumar28-Sep-07 1:03 
Questiontwo differernt binding sources Pin
fazeepk27-Sep-07 23:27
fazeepk27-Sep-07 23:27 
AnswerRe: two differernt binding sources Pin
Dave Kreskowiak28-Sep-07 7:13
mveDave Kreskowiak28-Sep-07 7:13 
Questiondatagrid Pin
mamatha97anju27-Sep-07 23:26
mamatha97anju27-Sep-07 23:26 
AnswerRe: datagrid Pin
fazeepk27-Sep-07 23:31
fazeepk27-Sep-07 23:31 
GeneralRe: datagrid Pin
mamatha97anju28-Sep-07 1:24
mamatha97anju28-Sep-07 1:24 
QuestionContext menu for Activex treeview control Pin
Punithakalyani27-Sep-07 22:53
Punithakalyani27-Sep-07 22:53 
hai friends,
I am using Visual studio 2003 version.
I am using Activex treeview control(vb6 control).i am tring to use contextmenu for this control.But contextmenu property did not exist for OCX controls. So i am check the condition in mouseupevent the clickevent is right click event.then only show a contextmenu control.My problem is when am click the menuitem of contextmenu control,the menu item click event doesnot executed.how to i get the click event of contextmenu items for AXtreeview control.In this case the select event is working well.
but the click event is not executed.i am using following codes.Plz check this is correct or not.

Imports vb = Microsoft.VisualBasic.Compatibility

Private Sub AxTreeView1_MouseDownEvent(ByVal sender As Object, ByVal e As AxMSComctlLib.ITreeViewEvents_MouseDownEvent) Handles AxTreeView1.MouseDownEvent
If e.button = vb.VB6.MouseButtonConstants.RightButton Then
ContextMenu1.MenuItems.Clear()
menu1 = New MenuItem
menu1.Text = "Menu1"
ContextMenu1.MenuItems.Add(menu1)
Me.ContextMenu1.Show(AxTreeView1, New Point(e.x, e.y))
End If
End Sub
Private Sub menu1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles menu1.Click
MsgBox("Menu1 from click event")
End Sub
Private Sub menu1_Select(ByVal sender As Object, ByVal e As System.EventArgs) Handles menu1.Select
MsgBox("Menu1 from select event")
End Sub

Any one know the answer.Plz help me.I am waiting for ur clarification


by,
Punitha.M
QuestionDisplaying time Pin
bhattiprolu27-Sep-07 21:06
bhattiprolu27-Sep-07 21:06 
AnswerRe: Displaying time Pin
Tom Deketelaere27-Sep-07 22:07
professionalTom Deketelaere27-Sep-07 22:07 
AnswerRe: Displaying time Pin
Christian Graus27-Sep-07 23:25
protectorChristian Graus27-Sep-07 23:25 
GeneralRe: Displaying time Pin
Tom Deketelaere27-Sep-07 23:54
professionalTom Deketelaere27-Sep-07 23:54 
GeneralRe: Displaying time Pin
bhattiprolu28-Sep-07 0:24
bhattiprolu28-Sep-07 0:24 
GeneralRe: Displaying time Pin
Tom Deketelaere28-Sep-07 1:09
professionalTom Deketelaere28-Sep-07 1:09 
GeneralRe: Displaying time Pin
bhattiprolu28-Sep-07 2:12
bhattiprolu28-Sep-07 2:12 
GeneralRe: Displaying time Pin
Luc Pattyn28-Sep-07 2:36
sitebuilderLuc Pattyn28-Sep-07 2:36 
GeneralRe: Displaying time Pin
bhattiprolu28-Sep-07 3:23
bhattiprolu28-Sep-07 3:23 
GeneralRe: Displaying time Pin
Luc Pattyn28-Sep-07 3:59
sitebuilderLuc Pattyn28-Sep-07 3:59 
GeneralRe: Displaying time Pin
Dave Kreskowiak28-Sep-07 1:49
mveDave Kreskowiak28-Sep-07 1:49 
Questionhelp with keycode using plus key Pin
rexlizard27-Sep-07 15:59
rexlizard27-Sep-07 15:59 
AnswerRe: help with keycode using plus key Pin
The ANZAC27-Sep-07 16:12
The ANZAC27-Sep-07 16:12 
AnswerRe: help with keycode using plus key Pin
Luc Pattyn27-Sep-07 16:12
sitebuilderLuc Pattyn27-Sep-07 16:12 
GeneralRe: help with keycode using plus key Pin
rexlizard27-Sep-07 16:55
rexlizard27-Sep-07 16:55 
QuestionConcurency Issue Pin
twsted f827-Sep-07 15:24
twsted f827-Sep-07 15:24 
AnswerRe: Concurency Issue Pin
Dave Kreskowiak28-Sep-07 1:43
mveDave Kreskowiak28-Sep-07 1:43 

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.