andrew4582

Code snippet for Key Down Select All ah_alta

Mar 5th, 2011
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.65 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  3.     <CodeSnippet Format="1.0.0">
  4.         <Header>
  5.             <Title>AH Alt A</Title>
  6.             <Shortcut>ah_alta</Shortcut>
  7.             <Description>Code snippet for Key Down Select All</Description>
  8.             <Author>Andrew Hodgson</Author>
  9.             <SnippetTypes>
  10.                 <SnippetType>Expansion</SnippetType>
  11.             </SnippetTypes>
  12.         </Header>
  13.         <Snippet>
  14.             <Code Language="csharp">
  15.         <![CDATA[
  16.          if (e.Control && e.KeyCode == Keys.A)
  17.                ((TextBox)sender).SelectAll();
  18.        }
  19.      ]]>
  20.             </Code>
  21.         </Snippet>
  22.     </CodeSnippet>
  23. </CodeSnippets>
Advertisement
Add Comment
Please, Sign In to add comment