How do you switch the direction of a contextMenu as it draws closer to the end of a sentence? Some of my popups are longer, and it needs to be turned on the left side to allow the user to view the whole menu. I have observed the RightToLeft option on the properties window, but that does not solve my problem. Infact, it will be on the Right side now that a long list will be blocked from view. What I want is a slight modification of my code to detect the end of a sentence, and to switch to left side at the end of a sentence or closer.

Code:
ContextMenuStrip1.Show(RichTextBox1, RichTextBox1.GetPositionFromCharIndex(RichTextBox1.SelectionStart + RichTextBox1.SelectionLength))