Click here to Skip to main content
15,886,788 members
Home / Discussions / C#
   

C#

 
QuestionHow many times each unique String appears in the collection. Pin
dsrao19-Jul-09 17:14
dsrao19-Jul-09 17:14 
AnswerRe: How many times each unique String appears in the collection. Pin
PIEBALDconsult19-Jul-09 17:16
mvePIEBALDconsult19-Jul-09 17:16 
AnswerRe: How many times each unique String appears in the collection. Pin
OriginalGriff19-Jul-09 21:55
mveOriginalGriff19-Jul-09 21:55 
GeneralRe: How many times each unique String appears in the collection. Pin
Luc Pattyn20-Jul-09 1:07
sitebuilderLuc Pattyn20-Jul-09 1:07 
GeneralRe: How many times each unique String appears in the collection. Pin
OriginalGriff20-Jul-09 1:23
mveOriginalGriff20-Jul-09 1:23 
GeneralRe: How many times each unique String appears in the collection. Pin
Luc Pattyn20-Jul-09 1:35
sitebuilderLuc Pattyn20-Jul-09 1:35 
GeneralRe: How many times each unique String appears in the collection. Pin
OriginalGriff20-Jul-09 1:41
mveOriginalGriff20-Jul-09 1:41 
QuestionC# Windows Forms: How to filter WM_ACTIVATE and WM_NCACTIVATE messages? Pin
Magnat7519-Jul-09 15:18
Magnat7519-Jul-09 15:18 
Hey all,

I want to intercept windows message that is sent to my program when form is deactivated (or activated, no matter). I can intercept mouse clicks etc. using regular message filter, but I can't intercept WM_NCACTIVATE or WM_ACTIVATE messages, why is that?

I'm trying something like that:

[SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)]
public class MessageFilter : IMessageFilter
{
    private const int WM_ACTIVATE = 0x006;
    private const int WM_NCACTIVATE = 0x086;

    public bool PreFilterMessage(ref Message m)
    {
        if(m.Msg == WM_NCACTIVATE)
            return true;
        return false;
    }
}


and then in Main:

MessageFilter mf = new MessageFilter();
Application.AddMessageFilter(mf);



I can see using debugger that it doesn't react on activation and deactivation of my form. How to do it correclty?
AnswerRe: C# Windows Forms: How to filter WM_ACTIVATE and WM_NCACTIVATE messages? Pin
N a v a n e e t h19-Jul-09 16:44
N a v a n e e t h19-Jul-09 16:44 
QuestionHow get a content of field in html table? [modified] Pin
MassimoPallara19-Jul-09 12:36
MassimoPallara19-Jul-09 12:36 
AnswerRe: How get a content of field in html table? Pin
Christian Graus19-Jul-09 14:49
protectorChristian Graus19-Jul-09 14:49 
QuestionImage Brightness and Contrast change together Pin
lexx_zone19-Jul-09 9:32
lexx_zone19-Jul-09 9:32 
AnswerRe: Image Brightness and Contrast change together Pin
Christian Graus19-Jul-09 14:07
protectorChristian Graus19-Jul-09 14:07 
QuestionCreate a program play video file on Pocket PC? Pin
phamminh0519-Jul-09 7:43
phamminh0519-Jul-09 7:43 
AnswerRe: Create a program play video file on Pocket PC? Pin
Nishant_Mishra19-Jul-09 19:45
Nishant_Mishra19-Jul-09 19:45 
QuestionWHy C#net doesnot support Mul.inheritance? Pin
Ali_10019-Jul-09 6:52
Ali_10019-Jul-09 6:52 
AnswerRe: WHy C#net doesnot support Mul.inheritance? Pin
PIEBALDconsult19-Jul-09 7:05
mvePIEBALDconsult19-Jul-09 7:05 
AnswerRe: WHy C#net doesnot support Mul.inheritance? Pin
Uri Lavi19-Jul-09 8:15
Uri Lavi19-Jul-09 8:15 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
Christian Graus19-Jul-09 14:10
protectorChristian Graus19-Jul-09 14:10 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
PIEBALDconsult19-Jul-09 14:45
mvePIEBALDconsult19-Jul-09 14:45 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
Christian Graus19-Jul-09 14:53
protectorChristian Graus19-Jul-09 14:53 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
S. Senthil Kumar19-Jul-09 17:41
S. Senthil Kumar19-Jul-09 17:41 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
PIEBALDconsult19-Jul-09 14:54
mvePIEBALDconsult19-Jul-09 14:54 
AnswerRe: WHy C#net doesnot support Mul.inheritance? Pin
N a v a n e e t h19-Jul-09 16:53
N a v a n e e t h19-Jul-09 16:53 
GeneralRe: WHy C#net doesnot support Mul.inheritance? Pin
PIEBALDconsult19-Jul-09 17:48
mvePIEBALDconsult19-Jul-09 17:48 

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.