Windows Develop Bookmark and Share   
 index > Windows Forms General > How to capture the Control + F4 in processcmdkey in winform
 

How to capture the Control + F4 in processcmdkey in winform

Hi

In winform ProcessCmdKey how to usethe Control + F4.

Any sugesstions help me?

Thanks,

Sankar

Langars  Wednesday, September 05, 2007 8:41 AM

Try this

Code Snippet

protected override bool ProcessCmdKey (ref Message msg, Keys keyData)
{
switch (keyData)

{

case Keys.F4 | Keys.Control:

}

}

Karthikeya Pavan Kumar .B  Wednesday, September 05, 2007 12:08 PM

Try this

Code Snippet

protected override bool ProcessCmdKey (ref Message msg, Keys keyData)
{
switch (keyData)

{

case Keys.F4 | Keys.Control:

}

}

Karthikeya Pavan Kumar .B  Wednesday, September 05, 2007 12:08 PM

You can use google to search for other answers

Custom Search

More Threads

• Notifyicon not responding in c# Windows Service
• LinkLabel : click and linkClicked
• Building a documentation
• Yahtzee game: see the dice's rolling.
• OnHandleCreated, IsHandleCreated: some threading issue makes me crazy :(
• About Checkbox column in datagridview
• Printing complex, multiple page documents
• How do you get RichTextBox's cursor location in pixels.
• Drawing onto a jpg and then saving the file
• User and password in code