Click here to Skip to main content
15,888,282 members
Home / Discussions / C#
   

C#

 
GeneralRe: Message Handling...... Pin
0x3c029-May-09 0:23
0x3c029-May-09 0:23 
AnswerRe: Message Handling...... Pin
0x3c029-May-09 0:26
0x3c029-May-09 0:26 
AnswerRe: Message Handling...... Pin
Rob Philpott29-May-09 0:30
Rob Philpott29-May-09 0:30 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 0:35
Rob Philpott29-May-09 0:35 
GeneralRe: Message Handling...... Pin
vishal moharikar29-May-09 0:48
vishal moharikar29-May-09 0:48 
GeneralRe: Message Handling...... Pin
Rajesh R Subramanian29-May-09 1:27
professionalRajesh R Subramanian29-May-09 1:27 
GeneralRe: Message Handling...... Pin
Rob Philpott29-May-09 3:14
Rob Philpott29-May-09 3:14 
AnswerRe: Message Handling...... Pin
mark_ian1-Jun-09 4:57
mark_ian1-Jun-09 4:57 
If I understand you correctly then if you add the following code to the program.cs then you will be able intercept messages being passed to your app. Hope this helps.
         /// <summary>
         /// The main entry point for the application.
         /// </summary>
         [STAThread]
         static void Main(string[] args)
         {
                     MessageFilter messageFilter = new MessageFilter();
                     Application.AddMessageFilter(messageFilter);
         }

   internal class MessageFilter : IMessageFilter
   {

         bool IMessageFilter.PreFilterMessage(ref Message m)
         {
            switch (m.Msg)
            {
                  case 0x100: //MSG.WM_KEYDOWN
                     if ((int)m.WParam == (int)Keys.F1)
                     {
                     }
            }
         }
   }

Mark
QuestionCombobox Pin
yesu prakash29-May-09 0:03
yesu prakash29-May-09 0:03 
AnswerRe: Combobox Pin
stancrm29-May-09 0:06
stancrm29-May-09 0:06 
AnswerRe: Combobox Pin
Ravi Mori29-May-09 0:08
Ravi Mori29-May-09 0:08 
AnswerRe: Combobox Pin
AhsanS29-May-09 0:15
AhsanS29-May-09 0:15 
GeneralRe: Combobox Pin
xingselex29-May-09 0:42
xingselex29-May-09 0:42 
GeneralRe: Combobox Pin
Satish Pai29-May-09 1:51
Satish Pai29-May-09 1:51 
GeneralRe: Combobox Pin
Satish Pai29-May-09 1:38
Satish Pai29-May-09 1:38 
GeneralRe: Combobox Pin
xingselex29-May-09 6:27
xingselex29-May-09 6:27 
GeneralRe: Combobox Pin
Satish Pai29-May-09 18:05
Satish Pai29-May-09 18:05 
GeneralRe: Combobox Pin
xingselex29-May-09 19:12
xingselex29-May-09 19:12 
GeneralRe: Combobox Pin
Satish Pai29-May-09 19:14
Satish Pai29-May-09 19:14 
QuestionChnage backgrounf color of a form Pin
VC_RYK28-May-09 21:42
VC_RYK28-May-09 21:42 
AnswerRe: Chnage backgrounf color of a form Pin
dan!sh 28-May-09 21:52
professional dan!sh 28-May-09 21:52 
AnswerRe: Chnage backgrounf color of a form Pin
stancrm28-May-09 21:56
stancrm28-May-09 21:56 
GeneralRe: Chnage backgrounf color of a form Pin
VC_RYK28-May-09 22:01
VC_RYK28-May-09 22:01 
GeneralRe: Chnage backgrounf color of a form Pin
pampam11028-May-09 22:09
pampam11028-May-09 22:09 
GeneralRe: Chnage backgrounf color of a form Pin
VC_RYK28-May-09 22:14
VC_RYK28-May-09 22:14 

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.