This project is read-only.

ScintillaNET Select

Topics: Developer Forum
Jan 13, 2014 at 9:25 PM
Hi, I want to know how can I select the ScintillaNET, i tryed scintilla1.Focus and scintilla1.Selected but nothing. I want to selected it from another dockpanel when I double click on the dockpanel, eg dockpanel with some sentences.
Feb 19, 2014 at 9:39 PM
I'm not in a place where I can test this, but have you tried
scintilla.Select();
Thanks,
Jacob
Feb 20, 2014 at 8:01 AM
I tryed, and it won't work.
Feb 20, 2014 at 3:12 PM
Works for me. To test I created a new form and added a single scintilla control and a single button. I then set the button click event to give focus to the scintilla control. Like this:
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        button1.Select();
    }

    private void button1_Click(object sender, EventArgs e)
    {
        scintilla1.Select();
    }
}
When the form loads the initial focus is on the button. Clicking the button (and calling Scintilla.Select()) gives the Scintilla control focus, the caret appears and keystrokes are getting displayed in the editor, etc....

I believe whatever issue you're having is with your own application.

Thanks,
Jacob