AutoComplete feature in RichTextBox control.

Posted by Peermohamedmydeen under Windows Forms category on | Points: 40 | Views : 7015
Hi All,

In C# Winforms, we have RichTextBox control. In which if we want to give a auto complete option it is very easy to implement.

For that we need to create a usercontrol derived form RichTextBox control. In that usercontrol implement the interface IEditControlsEmbed .

This IEditControlsEmbed is the interface given by a third party.

using System.Windows.Forms;

class MyRTB : RichTextBox, IEditControlsEmbed
Control IEditControlsEmbed.GetActiveEditControl(IEditControlsEmbedListener listener)
return (Control)this;

Hope it will be helpful.

Comments or Responses

Login to post response