Click here to Skip to main content
15,899,025 members
Home / Discussions / C#
   

C#

 
QuestionMaking application Vista compatible? Pin
Richard Blythe14-Jun-08 17:22
Richard Blythe14-Jun-08 17:22 
AnswerRe: Making application Vista compatible? Pin
rp_suman14-Jun-08 19:07
rp_suman14-Jun-08 19:07 
AnswerRe: Making application Vista compatible? Pin
Christian Graus15-Jun-08 2:04
protectorChristian Graus15-Jun-08 2:04 
QuestionWant my form to permit focus to "penetrate" to whatever window is under Pin
FocusedWolf14-Jun-08 14:00
FocusedWolf14-Jun-08 14:00 
AnswerRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
Christian Graus14-Jun-08 15:53
protectorChristian Graus14-Jun-08 15:53 
GeneralRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
FocusedWolf14-Jun-08 16:27
FocusedWolf14-Jun-08 16:27 
GeneralRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
Christian Graus14-Jun-08 16:47
protectorChristian Graus14-Jun-08 16:47 
GeneralRe: Want my form to permit focus to "penetrate" to whatever window is under [modified] Pin
FocusedWolf15-Jun-08 8:22
FocusedWolf15-Jun-08 8:22 
Ya no luck with WindowFromPoint (in vista) so far... Also how do i "hide" a form from WindowFromPoint but keep it visible?, i tried making it not enabled, and some ShowWindowAsync(shades.Handle, SW_HIDE) which definatally hides it from view, but i want it visible still...

Also i tried with one of those lowlevel-ish hooks to watch the mouse when it's off my form, and so far WindowFromPoint returns 0 regardless...

something that caught my eye though was:

private const int WM_NCHITTEST = 0x0084;
private const int HTTRANSPARENT = (-1);

/// <summary>
/// Overrides the standard Window Procedure to ensure the
/// window is transparent to all mouse events.
/// </summary>
/// <param name="m">Windows message to process.</param>
protected override void WndProc(ref Message m)
{
    if (m.Msg == WM_NCHITTEST)
    {
        m.Result = (IntPtr)HTTRANSPARENT;
    }
    else
    {
        base.WndProc(ref m);
    }
}


but it doesn't work for other threads... else it'd be very good solution :P
GeneralRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
FocusedWolf15-Jun-08 18:48
FocusedWolf15-Jun-08 18:48 
GeneralRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
FocusedWolf17-Jun-08 10:29
FocusedWolf17-Jun-08 10:29 
AnswerRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
Giorgi Dalakishvili14-Jun-08 23:45
mentorGiorgi Dalakishvili14-Jun-08 23:45 
AnswerRe: Want my form to permit focus to "penetrate" to whatever window is under Pin
Muammar©15-Jun-08 1:35
Muammar©15-Jun-08 1:35 
QuestionConnectionStrings from settings file. Pin
Sunset Towers14-Jun-08 11:36
Sunset Towers14-Jun-08 11:36 
AnswerRe: ConnectionStrings from settings file. Pin
Scott Dorman14-Jun-08 15:49
professionalScott Dorman14-Jun-08 15:49 
QuestionTrap Cancel Button Without Using MessageBox Class Pin
Win32SF14-Jun-08 11:21
Win32SF14-Jun-08 11:21 
AnswerRe: Trap Cancel Button Without Using MessageBox Class Pin
Christian Graus14-Jun-08 11:28
protectorChristian Graus14-Jun-08 11:28 
GeneralRe: Trap Cancel Button Without Using MessageBox Class Pin
Win32SF14-Jun-08 13:38
Win32SF14-Jun-08 13:38 
Questionstoring an array in a profile tag of web.config Pin
Zeeshan Riaz14-Jun-08 11:01
Zeeshan Riaz14-Jun-08 11:01 
AnswerRe: storing an array in a profile tag of web.config Pin
Christian Graus14-Jun-08 11:14
protectorChristian Graus14-Jun-08 11:14 
GeneralRe: storing an array in a profile tag of web.config Pin
Zeeshan Riaz14-Jun-08 11:22
Zeeshan Riaz14-Jun-08 11:22 
GeneralRe: storing an array in a profile tag of web.config Pin
Christian Graus14-Jun-08 11:24
protectorChristian Graus14-Jun-08 11:24 
GeneralRe: storing an array in a profile tag of web.config Pin
Zeeshan Riaz14-Jun-08 11:34
Zeeshan Riaz14-Jun-08 11:34 
GeneralRe: storing an array in a profile tag of web.config Pin
Christian Graus14-Jun-08 11:35
protectorChristian Graus14-Jun-08 11:35 
Questionsocket usage permission Pin
mahraja14-Jun-08 9:41
mahraja14-Jun-08 9:41 
QuestionExcel Help Pin
MumbleB14-Jun-08 6:22
MumbleB14-Jun-08 6:22 

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.