Keyoti

Knowledge Base


Keyoti KB Knowledgebase Home Page  >  RapidSpell Desktop .NET  >  Appearance Customization

Search the Knowledge Base Browse by Category
How can I change the position of the as-you-type context menu? (C#)
http://keyoti.com/kb/Default.aspx?ToDo=view&questId=216&catId=63

Options

Print this page
Email this to a friend
Post a comment

It's possible to customize the position of the as-you-type context menu so when suggestions are displayed the menu strip is located in a specific position. This example demonstrates how to lower the suggestions strip by 20 pixels so the misspelled word is not covered when suggestions are shown;

 

After InitializeComponent();

  

   Add this line

 

this.aytRichTextBox1.ContextMenuStrip.Opened += new EventHandler(ContextMenuStrip_Opened);

 

With event handler

 

        void ContextMenuStrip_Opened(object sender, EventArgs e)

        {

            (sender as ContextMenuStrip).Top += 20;

        }

 

 

Where aytRichTextBox1 is the textbox being spell checked.

 

 

 


Visitor Comments:

No visitor comments posted. Post your comments.
 
Related Questions:

Attachments:

No attachments were found.



About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.