I am creating a gap between a highlighted word and a contextmenustrip. My contextMenu is abstracting the item I want to replace so users cannot see what they are changing. This is creating a lot of problems for me. How can you do this? Here is my code:
Code:For Each replacement In replacements(checkWord) ContextMenuStrip1.Items.Add(replacement.ToLowerInvariant, Nothing, Sub(sender As Object, e As EventArgs) RichTextBox1.SelectedText = GetWordWithOutBracketedText(kamau) End Sub) Next ContextMenuStrip1.Show(RichTextBox1, RichTextBox1.GetPositionFromCharIndex(RichTextBox1.SelectionStart + RichTextBox1.SelectionLength))




Reply With Quote
