Posted 19 years ago
by Ted Schunk
I would like to display an "IntelliPrompt" list when the user types Ctrl+Space. I added the code below and when I press Ctrl Space the intelliprompt window appears for a split second and then goes away.
private void editor_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Space && e.Modifiers == Keys.Control)
{
IntelliPromptMemberList memberList = editor.IntelliPrompt.MemberList;
memberList.Clear();
memberList.Add(new IntelliPromptMemberListItem("A", 0, ""));
memberList.Add(new IntelliPromptMemberListItem("B", 0, ""));
if (memberList.Count > 0)
memberList.Show();
}
}