I'm assuming again... that 'MenuItem4' is part of 'ContextMenu1', what happens if, after you change the value, you reassign the menu contents to the 'NotifyIcon1.ContextMenu' ?
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load NotifyIcon1.ContextMenu = ContextMenu1 Me.ContextMenu = ContextMenu1 End Sub Private Sub ContextMenu1_Popup(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ContextMenu1.Popup MenuItem4.Text = TextBox1.Text NotifyIcon1.ContextMenu = ContextMenu1 End Sub
I'm thinking that because the two objects are technically separate as they're not on the same 'form' they don't automatically both 'see' changes to 'Contextmenu1'... just a thought.




Reply With Quote