Click here to Skip to main content
11,643,493 members (73,746 online)
   

C#

 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
BobJanova3-Jan-13 1:36
memberBobJanova3-Jan-13 1:36 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
Pete O'Hanlon3-Jan-13 1:42
protectorPete O'Hanlon3-Jan-13 1:42 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM693-Jan-13 3:22
mentorDaveyM693-Jan-13 3:22 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM693-Jan-13 12:10
mentorDaveyM693-Jan-13 12:10 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
jschell3-Jan-13 8:16
memberjschell3-Jan-13 8:16 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM693-Jan-13 11:36
mentorDaveyM693-Jan-13 11:36 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
Bernhard Hiller3-Jan-13 22:48
memberBernhard Hiller3-Jan-13 22:48 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
jschell4-Jan-13 13:08
memberjschell4-Jan-13 13:08 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM695-Jan-13 3:00
mentorDaveyM695-Jan-13 3:00 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
jschell6-Jan-13 4:42
memberjschell6-Jan-13 4:42 
AnswerRe: CA2214 Do not call overridable methods in constructors Pin
BobJanova3-Jan-13 1:41
memberBobJanova3-Jan-13 1:41 
GeneralRe: CA2214 Do not call overridable methods in constructors Pin
DaveyM693-Jan-13 12:29
mentorDaveyM693-Jan-13 12:29 
QuestionBind listview row color to active index Pin
bornefalk2-Jan-13 9:50
memberbornefalk2-Jan-13 9:50 
QuestionUI Automation and MMC Pin
RonNYC22-Jan-13 5:57
memberRonNYC22-Jan-13 5: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
a2bj1-Jan-13 23:39
membera2bj1-Jan-13 23:39 
AnswerRe: move a newfolder form a system on other system on the network by c# Pin
jibesh1-Jan-13 23:46
memberjibesh1-Jan-13 23:46 
AnswerRe: move a newfolder form a system on other system on the network by c# Pin
Simon_Whale2-Jan-13 3:02
memberSimon_Whale2-Jan-13 3:02 
Questiondata Set Not Coming In GridView Pin
aman11241-Jan-13 17:50
memberaman11241-Jan-13 17:50 
AnswerRe: data Set Not Coming In GridView Pin
jibesh1-Jan-13 21:25
memberjibesh1-Jan-13 21:25 
GeneralRe: data Set Not Coming In GridView Pin
aman11241-Jan-13 23:35
memberaman11241-Jan-13 23:35 
GeneralRe: data Set Not Coming In GridView Pin
jibesh1-Jan-13 23:36
memberjibesh1-Jan-13 23:36 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli1-Jan-13 23:40
memberGugliMugli1-Jan-13 23:40 
GeneralRe: data Set Not Coming In GridView Pin
jibesh1-Jan-13 23:42
memberjibesh1-Jan-13 23:42 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli1-Jan-13 23:57
memberGugliMugli1-Jan-13 23:57 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 0:02
memberjibesh2-Jan-13 0:02 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 1:27
memberGugliMugli2-Jan-13 1:27 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 1:29
memberjibesh2-Jan-13 1:29 
AnswerRe: data Set Not Coming In GridView Pin
Richard MacCutchan2-Jan-13 1:47
mvpRichard MacCutchan2-Jan-13 1:47 
GeneralRe: data Set Not Coming In GridView Pin
jibesh2-Jan-13 2:06
memberjibesh2-Jan-13 2:06 
GeneralRe: data Set Not Coming In GridView Pin
GugliMugli2-Jan-13 2:18
memberGugliMugli2-Jan-13 2:18 
GeneralRe: data Set Not Coming In GridView Pin
Richard MacCutchan2-Jan-13 4:15
mvpRichard MacCutchan2-Jan-13 4:15 
QuestionHow to show file association icon,one button and a progress bar on webbrowser control c# Pin
Tridip Bhattacharjee1-Jan-13 6:50
memberTridip Bhattacharjee1-Jan-13 6:50 
Question"sendkeys" does not work KnightOnline Pin
ismail2031-Dec-12 3:09
memberismail2031-Dec-12 3:09 
AnswerRe: "sendkeys" does not work KnightOnline Pin
Dave Kreskowiak31-Dec-12 3:28
mvpDave Kreskowiak31-Dec-12 3:28 
GeneralRe: "sendkeys" does not work KnightOnline Pin
ismail2031-Dec-12 3:42
memberismail2031-Dec-12 3:42 
GeneralRe: "sendkeys" does not work KnightOnline Pin
Dave Kreskowiak31-Dec-12 5:38
mvpDave Kreskowiak31-Dec-12 5:38 
GeneralRe: "sendkeys" does not work KnightOnline Pin
ismail2031-Dec-12 6:30
memberismail2031-Dec-12 6:30 
GeneralRe: "sendkeys" does not work KnightOnline Pin
Dave Kreskowiak31-Dec-12 6:47
mvpDave Kreskowiak31-Dec-12 6:47 
GeneralRe: "sendkeys" does not work KnightOnline Pin
ismail2031-Dec-12 7:35
memberismail2031-Dec-12 7:35 
GeneralRe: "sendkeys" does not work KnightOnline Pin
Marcus Kramer31-Dec-12 7:53
memberMarcus Kramer31-Dec-12 7:53 
GeneralRe: "sendkeys" does not work KnightOnline Pin
Dave Kreskowiak31-Dec-12 7:59
mvpDave Kreskowiak31-Dec-12 7:59 
GeneralRe: "sendkeys" does not work KnightOnline Pin
Pete O'Hanlon31-Dec-12 9:01
protectorPete O'Hanlon31-Dec-12 9:01 
GeneralRe: "sendkeys" does not work KnightOnline Pin
harold aptroot31-Dec-12 12:40
memberharold aptroot31-Dec-12 12:40 
AnswerRe: "sendkeys" does not work KnightOnline Pin
Abhinav S1-Jan-13 4:38
mvpAbhinav S1-Jan-13 4:38 
AnswerRe: "sendkeys" does not work KnightOnline Pin
ProgramFOX1-Jan-13 5:52
member ProgramFOX1-Jan-13 5:52 
AnswerIt's a game :) Pin
Eddy Vluggen1-Jan-13 6:01
memberEddy Vluggen1-Jan-13 6:01 
GeneralRe: It's a game :) Pin
ProgramFOX1-Jan-13 6:05
member ProgramFOX1-Jan-13 6:05 
Generalto access latitudes and longitudes from database Pin
naveen 201230-Dec-12 22:28
membernaveen 201230-Dec-12 22:28 
GeneralRe: to access latitudes and longitudes from database Pin
OriginalGriff30-Dec-12 23:22
mvpOriginalGriff30-Dec-12 23:22 
GeneralRe: to access latitudes and longitudes from database Pin
Pete O'Hanlon30-Dec-12 23:54
protectorPete O'Hanlon30-Dec-12 23:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web02 | 2.8.150731.1 | Last Updated 3 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid