I have this in one of my apps, there is some junk depending on what culture info we use, because its built for the swedish market. But I think you can filter out how its done....
If you have added your contextmenu at designtime you wouldn't have to do any of this but only to set the contextmenu property of your notification menu to the added context menu.Code:With niFrontend .Visible = True Dim ci As System.Globalization.CultureInfo = System.Globalization.CultureInfo.CurrentCulture Dim mnu(1) As MenuItem If Strings.Left(ci.Name, 2) = "en" Then mnu(0) = New MenuItem("Tools...", New EventHandler(AddressOf Me.btnTools_Click)) mnu(1) = New MenuItem("Quit", New EventHandler(AddressOf Me.btnClose_Click)) Else mnu(0) = New MenuItem("Verktyg...", New EventHandler(AddressOf Me.btnTools_Click)) mnu(1) = New MenuItem("Avsluta", New EventHandler(AddressOf Me.btnClose_Click)) End If Dim niMenu As New ContextMenu(mnu) .ContextMenu = niMenu End With




Reply With Quote