Click here to Skip to main content
15,905,785 members
Home / Discussions / C#
   

C#

 
GeneralRe: How can we enable CTRL+A on textBox in C# form ? Pin
DaveyM6925-Jun-08 22:18
professionalDaveyM6925-Jun-08 22:18 
QuestionMouse and Keyboard Scripting Pin
Michael Fritzius25-Jun-08 10:56
professionalMichael Fritzius25-Jun-08 10:56 
AnswerRe: Mouse and Keyboard Scripting Pin
Christian Graus25-Jun-08 18:29
protectorChristian Graus25-Jun-08 18:29 
GeneralRe: Mouse and Keyboard Scripting Pin
Michael Fritzius26-Jun-08 3:27
professionalMichael Fritzius26-Jun-08 3:27 
QuestionCreateDatabase() / DatabaseExists() Question Pin
Jammer25-Jun-08 9:39
Jammer25-Jun-08 9:39 
AnswerRe: CreateDatabase() / DatabaseExists() Question Pin
Judah Gabriel Himango25-Jun-08 18:07
sponsorJudah Gabriel Himango25-Jun-08 18:07 
GeneralRe: CreateDatabase() / DatabaseExists() Question Pin
Jammer26-Jun-08 2:57
Jammer26-Jun-08 2:57 
GeneralRe: CreateDatabase() / DatabaseExists() Question Pin
Jammer26-Jun-08 7:20
Jammer26-Jun-08 7:20 
QuestionHow can I convert this string to the image? Pin
Mohammad Dayyan25-Jun-08 9:33
Mohammad Dayyan25-Jun-08 9:33 
AnswerRe: How can I convert this string to the image? Pin
Guffa25-Jun-08 9:44
Guffa25-Jun-08 9:44 
AnswerRe: How can I convert this string to the image? Pin
hammerstein0525-Jun-08 9:45
hammerstein0525-Jun-08 9:45 
GeneralRe: How can I convert this string to the image? Pin
Mohammad Dayyan25-Jun-08 9:56
Mohammad Dayyan25-Jun-08 9:56 
GeneralRe: How can I convert this string to the image? Pin
hammerstein0525-Jun-08 10:13
hammerstein0525-Jun-08 10:13 
GeneralRe: How can I convert this string to the image? Pin
Mohammad Dayyan25-Jun-08 10:21
Mohammad Dayyan25-Jun-08 10:21 
GeneralRe: How can I convert this string to the image? Pin
Guffa25-Jun-08 10:29
Guffa25-Jun-08 10:29 
GeneralRe: How can I convert this string to the image? Pin
hammerstein0525-Jun-08 10:34
hammerstein0525-Jun-08 10:34 
GeneralRe: How can I convert this string to the image? Pin
Mbah Dhaim25-Jun-08 22:39
Mbah Dhaim25-Jun-08 22:39 
GeneralRe: How can I convert this string to the image? Pin
Mohammad Dayyan25-Jun-08 10:16
Mohammad Dayyan25-Jun-08 10:16 
GeneralRe: How can I convert this string to the image? Pin
hammerstein0525-Jun-08 10:22
hammerstein0525-Jun-08 10:22 
GeneralRe: How can I convert this string to the image? Pin
Mohammad Dayyan25-Jun-08 10:36
Mohammad Dayyan25-Jun-08 10:36 
QuestionUse Ctrl+F1 to cycle between MDI child windows Pin
AndrusM25-Jun-08 7:46
AndrusM25-Jun-08 7:46 
QuestionUsing Ctrl+E menu shortcut from readonly control Pin
AndrusM25-Jun-08 7:43
AndrusM25-Jun-08 7:43 
If focused control is ReadOnly, Ctrl+E menu shortcut key is ignored.

To reproduce, run code below, press Ctrl+E.
Message box does not appear.

How to use Ctrl+E key from readonly or disabled control ?

Andrus.


using System;
using System.Windows.Forms;

static class Program
{
    static void Main()
    {
        Application.Run(new Form1());
    }
}

class Form1 : Form
{
    public Form1()
    {
        menuStrip1 = new MenuStrip();
        fileToolStripMenuItem = new ToolStripMenuItem();
        openToolStripMenuItem = new ToolStripMenuItem();
        textBox1 = new TextBox();
        menuStrip1.Items.AddRange(new ToolStripItem[] { fileToolStripMenuItem });
        fileToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { openToolStripMenuItem });
        fileToolStripMenuItem.Text = "File";
        openToolStripMenuItem.ShortcutKeys = ((Keys)((Keys.Control | Keys.E)));
        openToolStripMenuItem.Text = "Open";
        openToolStripMenuItem.Click += new System.EventHandler(openToolStripMenuItem_Click);
        textBox1.Location = new System.Drawing.Point(55, 150);
        textBox1.ReadOnly = true;
        Controls.Add(textBox1);
        Controls.Add(menuStrip1);
        MainMenuStrip = menuStrip1;
    }

    void openToolStripMenuItem_Click(object sender, EventArgs e)
    {
        MessageBox.Show("Clicked");
    }

    MenuStrip menuStrip1;
    ToolStripMenuItem fileToolStripMenuItem;
    ToolStripMenuItem openToolStripMenuItem;
    TextBox textBox1;
}


Andrus

QuestionAdding A Record (Sql Server 2005 Compact Edition and Visual Studio 2005 C#) Pin
lpaulding25-Jun-08 6:16
lpaulding25-Jun-08 6:16 
AnswerRe: Adding A Record (Sql Server 2005 Compact Edition and Visual Studio 2005 C#) Pin
Igor Velikorossov25-Jun-08 6:34
Igor Velikorossov25-Jun-08 6:34 
GeneralRe: Adding A Record (Sql Server 2005 Compact Edition and Visual Studio 2005 C#) Pin
Abhijit Jana25-Jun-08 6:43
professionalAbhijit Jana25-Jun-08 6:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.