Click here to Skip to main content
16,020,298 members
Home / Discussions / C#
   

C#

 
QuestionListening to system Event Log and detect specific events Pin
Ayoub SâaDii15-May-14 5:09
Ayoub SâaDii15-May-14 5:09 
AnswerRe: Listening to system Event Log and detect specific events Pin
Richard Andrew x6415-May-14 5:11
professionalRichard Andrew x6415-May-14 5:11 
GeneralRe: Listening to system Event Log and detect specific events Pin
Ayoub SâaDii15-May-14 5:15
Ayoub SâaDii15-May-14 5:15 
AnswerRe: Listening to system Event Log and detect specific events Pin
BillWoodruff15-May-14 13:42
professionalBillWoodruff15-May-14 13:42 
QuestionCustom Listbox' scrollbar painting Pin
op7515-May-14 3:06
op7515-May-14 3:06 
AnswerRe: Custom Listbox' scrollbar painting Pin
Ravi Bhavnani15-May-14 4:26
professionalRavi Bhavnani15-May-14 4:26 
GeneralRe: Custom Listbox' scrollbar painting Pin
op7515-May-14 21:44
op7515-May-14 21:44 
QuestionHow to get position a Child Window & its items? Pin
Member 1063699815-May-14 2:06
Member 1063699815-May-14 2:06 
I am able to find the Parent Window & its Child Windows, even I can find the position of the Parent Windows ... I can't find the position a its Child Window & its Child items (Button, Text Box ...)

1. The following codes to help me pinpoint the Parent & its Child Window:

IntPtr hwnd;
           hwnd = FindWindow("ParentClass", "ParentTitle");

            WindowsEnumerator enumerator = new WindowsEnumerator();
            foreach (ApiWindow top in enumerator.GetTopLevelWindows())
            {

                foreach (ApiWindow child in enumerator.GetChildWindows(top.hWnd))
                    MessageBox.Show("Child Window = " + child.MainWindowTitle + ", Child ClassName = " + child.ClassName);

            }


2. When I found an intended Child Window, I used:

IntPtr Chd_win = IntPtr.Zero;
                           Chd_win = FindWindowEx(hwnd_Parent, Chd_win, "ChildWindow_Class", "ChildWindow_Tiltle");  // From one of the found Child Window in #1

                           GetWindowRect(Chd_win, out rect);

                            MessageBox.Show("Child = " + Chd_win.ToString() + ": TopLeft_X = " + rect.Left.ToString() + ", TopLeft_Y = " + rect.Top.ToString());


*) The result shows always TopLeft_X = 0 & TopLeft_Y = 0

Anyone can help? Cry | :((
AnswerRe: How to get position a Child Window & its items? Pin
Eddy Vluggen15-May-14 2:58
professionalEddy Vluggen15-May-14 2:58 
GeneralRe: How to get position a Child Window & its items? Pin
Member 1063699815-May-14 4:16
Member 1063699815-May-14 4:16 
GeneralRe: How to get position a Child Window & its items? Pin
Member 1063699815-May-14 5:31
Member 1063699815-May-14 5:31 
GeneralRe: How to get position a Child Window & its items? Pin
Member 1063699815-May-14 7:16
Member 1063699815-May-14 7:16 
GeneralRe: How to get position a Child Window & its items? Pin
Eddy Vluggen15-May-14 7:49
professionalEddy Vluggen15-May-14 7:49 
QuestionDatabase in oledb Pin
divya shri15-May-14 1:31
divya shri15-May-14 1:31 
AnswerRe: Database in oledb Pin
V.15-May-14 2:35
professionalV.15-May-14 2:35 
SuggestionRe: Database in oledb Pin
thatraja15-May-14 2:55
professionalthatraja15-May-14 2:55 
Questiondll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
sreehari_mysore15-May-14 0:39
sreehari_mysore15-May-14 0:39 
AnswerRe: dll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
Freak3015-May-14 2:47
Freak3015-May-14 2:47 
GeneralRe: dll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
sreehari_mysore15-May-14 5:56
sreehari_mysore15-May-14 5:56 
AnswerRe: dll used in C# application in VS2005 works correctly, but didn't work in VS2012. Pin
Bernhard Hiller15-May-14 21:43
Bernhard Hiller15-May-14 21:43 
QuestionCreating Multilingual app in C#.net Pin
diwesh14-May-14 15:06
diwesh14-May-14 15:06 
AnswerRe: Creating Multilingual app in C#.net Pin
Bernhard Hiller14-May-14 21:26
Bernhard Hiller14-May-14 21:26 
AnswerRe: Creating Multilingual app in C#.net Pin
diwesh14-May-14 21:31
diwesh14-May-14 21:31 
QuestionWeird Issue With Web Service Pin
SledgeHammer0114-May-14 7:36
SledgeHammer0114-May-14 7:36 
AnswerRe: Weird Issue With Web Service Pin
Kornfeld Eliyahu Peter14-May-14 10:11
professionalKornfeld Eliyahu Peter14-May-14 10:11 

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.