i had created a context menu at run time intializing with form iam using .net framework 2.0 and langugae C#
public ScriptForm()
{
// ObjDeleagte = new Delegate();
InitializeScriptColors();
PopulateContextMenu();
}
void PopulateContextMenu()
private
{
ObjContextMenu =new ContextMenu();
ObjContextMenu.MenuItems.Add(new MenuItem("cut"))
ObjContextMenu.MenuItems[0].Click +=; new EventHandler(Cut_Click);
ObjContextMenu.MenuItems.Add(new MenuItem("copy")); new
ObjContextMenu.MenuItems[1].Click +=new EventHandler(Copy_Click);
ObjContextMenu.MenuItems.Add(new MenuItem("Paste"));
ObjContextMenu.MenuItems[2].Click +=new EventHandler(Paste_Click);
ObjContextMenu.MenuItems.Add( new MenuItem("Delete"));
ObjContextMenu.MenuItems[3].Click +=EventHandler(Delete_Click);
}
this form also contain a text box "ScriptRichText"
on which i had put mouse event in which in showing my objContextmenu
but the problem is that it is showing edit mode cursor over context menu same as text box
but i want to have "arrow" type cursor
code for mouse click
private void ScriptRichText_MouseClick(object sender, MouseEventArgs e)
{
if (e.Button == MouseButtons.Right)
{
ObjContextMenu.Show(this.ScriptRichText, new Point(e.X, e.Y));
}
}
what should i do ?????