Posted 19 years ago
by Ted Schunk
![Avatar](https://secure.gravatar.com/avatar/264ddf5b6721f8f165b3987caa525317.jpg?s=64&d=identicon&r=g)
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();
}
}