Click here to Skip to main content
14,975,705 members
Home / Discussions / C#
   

C#

 
AnswerRe: Way to retain focus of transparent form application. Pin
EliottA19-Jun-09 8:52
MemberEliottA19-Jun-09 8:52 
GeneralRe: Way to retain focus of transparent form application. Pin
parth_patel19-Jun-09 8:55
Memberparth_patel19-Jun-09 8:55 
GeneralRe: Way to retain focus of transparent form application. Pin
EliottA19-Jun-09 9:26
MemberEliottA19-Jun-09 9:26 
GeneralRe: Way to retain focus of transparent form application. Pin
parth_patel19-Jun-09 12:30
Memberparth_patel19-Jun-09 12:30 
GeneralRe: Way to retain focus of transparent form application. Pin
S. Senthil Kumar20-Jun-09 18:11
MemberS. Senthil Kumar20-Jun-09 18:11 
GeneralRe: Way to retain focus of transparent form application. Pin
Dave Kreskowiak19-Jun-09 10:37
mveDave Kreskowiak19-Jun-09 10:37 
GeneralRe: Way to retain focus of transparent form application. Pin
parth_patel19-Jun-09 12:29
Memberparth_patel19-Jun-09 12:29 
AnswerRe: Way to retain focus of transparent form application. [modified] Pin
crayzeecoder19-Jun-09 9:30
Membercrayzeecoder19-Jun-09 9:30 
I got this from MSDN before

[DllImport("user32.dll")]
private extern static IntPtr SetActiveWindow(IntPtr handle);
private const int WM_ACTIVATE = 6;
private const int WA_INACTIVE = 0;


protected override void WndProc(ref Message m)
{
    if (m.Msg == WM_ACTIVATE)
    {
        if (((int)m.WParam & 0xFFFF) != WA_INACTIVE)
        {
            if (m.LParam != IntPtr.Zero)
            {
                SetActiveWindow(m.LParam);
            }
            else
            {
                SetActiveWindow(IntPtr.Zero);
            }
        }
    }

    base.WndProc(ref m);
}


I cant find the link for it though so I just found it in my own code
found the link[^] Big Grin | :-D

modified on Friday, June 19, 2009 3:39 PM

GeneralRe: Way to retain focus of transparent form application. Pin
parth_patel19-Jun-09 12:24
Memberparth_patel19-Jun-09 12:24 
QuestionConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 7:27
MemberZeokat19-Jun-09 7:27 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Manas Bhardwaj19-Jun-09 9:37
professionalManas Bhardwaj19-Jun-09 9:37 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 9:48
MemberZeokat19-Jun-09 9:48 
AnswerRe: ConfigurationManager - how to read/write into a custom section? Pin
Henry Minute19-Jun-09 10:18
MemberHenry Minute19-Jun-09 10:18 
GeneralRe: ConfigurationManager - how to read/write into a custom section? Pin
Zeokat19-Jun-09 10:34
MemberZeokat19-Jun-09 10:34 
QuestionReplace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:01
professionalVimalsoft(Pty) Ltd19-Jun-09 7:01 
AnswerRe: Replace Function Pin
musefan19-Jun-09 7:14
Membermusefan19-Jun-09 7:14 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:23
professionalVimalsoft(Pty) Ltd19-Jun-09 7:23 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:34
sitebuilderLuc Pattyn19-Jun-09 7:34 
AnswerRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:33
sitebuilderLuc Pattyn19-Jun-09 7:33 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:36
professionalVimalsoft(Pty) Ltd19-Jun-09 7:36 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:38
Membermusefan19-Jun-09 7:38 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:39
professionalVimalsoft(Pty) Ltd19-Jun-09 7:39 
GeneralRe: Replace Function Pin
Luc Pattyn19-Jun-09 7:43
sitebuilderLuc Pattyn19-Jun-09 7:43 
GeneralRe: Replace Function Pin
Vimalsoft(Pty) Ltd19-Jun-09 7:48
professionalVimalsoft(Pty) Ltd19-Jun-09 7:48 
GeneralRe: Replace Function Pin
musefan19-Jun-09 7:37
Membermusefan19-Jun-09 7:37 

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.