Click here to Skip to main content
15,885,985 members
Home / Discussions / C#
   

C#

 
QuestionGet Lan Computers Name Pin
freshonlineMax3-May-06 23:19
freshonlineMax3-May-06 23:19 
QuestionGetForegroundWindow() not working as expected Pin
g00fyman3-May-06 23:14
g00fyman3-May-06 23:14 
QuestionManagementObjectSearcher.Get Generic Failure Pin
vinu_p3-May-06 23:00
vinu_p3-May-06 23:00 
QuestionEvent Pin
AnhTin3-May-06 22:24
AnhTin3-May-06 22:24 
AnswerRe: Event Pin
freshonlineMax3-May-06 23:33
freshonlineMax3-May-06 23:33 
GeneralRe: Event Pin
J4amieC3-May-06 23:55
J4amieC3-May-06 23:55 
GeneralRe: Event Pin
AnhTin4-May-06 16:15
AnhTin4-May-06 16:15 
GeneralRe: Event Pin
microsoc4-May-06 20:35
microsoc4-May-06 20:35 
hi AnhTin! Smile | :)

so what you mean is when the user PRESS Control + Enter? Smile | :)

if your subclassing a control just override the OnKeyDown event

protected override void OnKeyDown(KeyEventArgs e)
{
   if (e.KeyData == (Keys.Control | Keys.Enter))
   {
     //do something here
   }
}


or if your just using the control... attach an event handler on the KeyDown event then do the same condition that i added in the onkeydown event.

hope that helps! Smile | :)



microsoc Cool | :cool:
GeneralRe: Event Pin
AnhTin7-May-06 17:27
AnhTin7-May-06 17:27 
GeneralRe: Event Pin
microsoc7-May-06 17:29
microsoc7-May-06 17:29 
QuestionHow to get system info for every visitior Pin
papa19803-May-06 21:19
papa19803-May-06 21:19 
AnswerRe: How to get system info for every visitior Pin
sathish s3-May-06 21:24
sathish s3-May-06 21:24 
GeneralRe: How to get system info for every visitior Pin
papa19803-May-06 21:58
papa19803-May-06 21:58 
QuestionHow to use access db With Password ? Pin
hdv2123-May-06 21:15
hdv2123-May-06 21:15 
AnswerRe: How to use access db With Password ? Pin
Christian Graus3-May-06 21:36
protectorChristian Graus3-May-06 21:36 
Questionhow to export data of datagrid in WINFORM Pin
Aayush Singh3-May-06 21:02
Aayush Singh3-May-06 21:02 
AnswerRe: how to export data of datagrid in WINFORM Pin
sathish s3-May-06 21:39
sathish s3-May-06 21:39 
QuestionPopulating a asp:Listbox and setting the selected items Pin
Brendan Vogt3-May-06 20:35
Brendan Vogt3-May-06 20:35 
QuestionWeb Browerd in C# Pin
AnhTin3-May-06 19:58
AnhTin3-May-06 19:58 
Questionget active program window Pin
g00fyman3-May-06 19:51
g00fyman3-May-06 19:51 
AnswerRe: get active program window Pin
DigitalKing3-May-06 19:57
DigitalKing3-May-06 19:57 
GeneralRe: get active program window Pin
g00fyman3-May-06 20:05
g00fyman3-May-06 20:05 
QuestionCannot use Outlook Object Model in Windows Service Pin
Bunnycool3-May-06 18:40
Bunnycool3-May-06 18:40 
AnswerRe: Cannot use Outlook Object Model in Windows Service Pin
led mike3-May-06 19:45
led mike3-May-06 19:45 
AnswerRe: Cannot use Outlook Object Model in Windows Service Pin
Corinna John3-May-06 20:09
Corinna John3-May-06 20:09 

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.