Click here to Skip to main content
12,065,888 members (27,603 online)
   

C#

 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
Bernhard Hiller3-Jan-13 23:48
memberBernhard Hiller3-Jan-13 23:48 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
jschell4-Jan-13 14:08
memberjschell4-Jan-13 14:08 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM695-Jan-13 4:00
mentorDaveyM695-Jan-13 4:00 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
jschell6-Jan-13 5:42
memberjschell6-Jan-13 5:42 
AnswerRe: CA2214 Do not call overridable methods in constructors Pin
BobJanova3-Jan-13 2:41
memberBobJanova3-Jan-13 2:41 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM693-Jan-13 13:29
mentorDaveyM693-Jan-13 13:29 
QuestionBind listview row color to active index Pin
bornefalk2-Jan-13 10:50
memberbornefalk2-Jan-13 10:50 
QuestionUI Automation and MMC Pin
RonNYC22-Jan-13 6:57
memberRonNYC22-Jan-13 6:57 
Hi. I'm probably making some subtle (or more likely not so subtle) error. I'm trying to drive MMC via a C# program. I can, as a trial, get to the menus of Calc.exe via this code:

Process calcProcess=Process.Start("c:\\windows\\system32\\calc.exe");
       Thread.Sleep(2000);
 
       AutomationElement aeDesktop = AutomationElement.RootElement;
 
       AutomationElement aeCalc = null;
       int numWaits = 0;
       do
       {
           aeCalc = aeDesktop.FindFirst(TreeScope.Children,
             new PropertyCondition(AutomationElement.NameProperty, "Calculator"));
           Console.WriteLine("Looking for calculator . . . ");
           ++numWaits;
           Thread.Sleep(100);
       } while (aeCalc == null && numWaits < 10);
       if (aeCalc == null)
           throw new Exception("Failed to find calc.EXE");
       else
           Console.WriteLine("Found it!");
       AutomationElementCollection menuCalcBars = aeCalc.FindAll(TreeScope.Children, new PropertyCondition(
       AutomationElement.ControlTypeProperty, ControlType.MenuBar));

And I get a Count of 1 (for the one menu). BUT when I do this with MMC, I get a count of 0, no menu. In UISpy I can see the Calc menu but I can't see the MMC menu. Any help is GREATLY appreciated.
Ron

Questionmove a newfolder form a system on other system on the network by c# Pin
a2bj2-Jan-13 0:39
membera2bj2-Jan-13 0:39 
AnswerRe: move a newfolder form a system on other system on the network by c# Pin
jibesh2-Jan-13 0:46
memberjibesh2-Jan-13 0:46 
AnswerRe: move a newfolder form a system on other system on the network by c# Pin
Simon_Whale2-Jan-13 4:02
memberSimon_Whale2-Jan-13 4:02 
Questiondata Set Not Coming In GridView Pin
aman11241-Jan-13 18:50
memberaman11241-Jan-13 18:50 
AnswerRe: data Set Not Coming In GridView Pin
jibesh1-Jan-13 22:25
memberjibesh1-Jan-13 22:25 
GeneralRe: data Set Not Coming In GridView Pin
aman11242-Jan-13 0:35
memberaman11242-Jan-13 0:35 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 0:36
memberjibesh2-Jan-13 0:36 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 0:40
memberGugliMugli2-Jan-13 0:40 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 0:42
memberjibesh2-Jan-13 0:42 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 0:57
memberGugliMugli2-Jan-13 0:57 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 1:02
memberjibesh2-Jan-13 1:02 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 2:27
memberGugliMugli2-Jan-13 2:27 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 2:29
memberjibesh2-Jan-13 2:29 
AnswerRe: data Set Not Coming In GridView Pin
Richard MacCutchan2-Jan-13 2:47
mvpRichard MacCutchan2-Jan-13 2:47 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 3:06
memberjibesh2-Jan-13 3:06 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 3:18
memberGugliMugli2-Jan-13 3:18 
GeneralRe: data Set Not Coming In GridView Pin
Richard MacCutchan2-Jan-13 5:15
mvpRichard MacCutchan2-Jan-13 5:15 

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.


Advertise | Privacy | Mobile
Web01 | 2.8.160207.1 | Last Updated 8 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid