Click here to Skip to main content
15,884,237 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to create an organizational chart in ASP with C# without api and HTML5 Pin
Richard MacCutchan11-Dec-13 21:18
mveRichard MacCutchan11-Dec-13 21:18 
QuestionHow I can find selected control on any window from mouse click c# Pin
delphix510-Dec-13 4:57
delphix510-Dec-13 4:57 
AnswerRe: How I can find selected control on any window from mouse click c# Pin
Abhinav S10-Dec-13 5:09
Abhinav S10-Dec-13 5:09 
GeneralRe: How I can find selected control on any window from mouse click c# Pin
delphix510-Dec-13 5:16
delphix510-Dec-13 5:16 
GeneralRe: How I can find selected control on any window from mouse click c# Pin
Dave Kreskowiak10-Dec-13 5:43
mveDave Kreskowiak10-Dec-13 5:43 
GeneralRe: How I can find selected control on any window from mouse click c# Pin
delphix510-Dec-13 6:55
delphix510-Dec-13 6:55 
AnswerRe: How I can find selected control on any window from mouse click c# Pin
Eddy Vluggen10-Dec-13 8:06
professionalEddy Vluggen10-Dec-13 8:06 
AnswerRe: How I can find selected control on any window from mouse click c# Pin
BillWoodruff10-Dec-13 5:52
professionalBillWoodruff10-Dec-13 5:52 
You are going to need to set a Global Mouse Hook. There's an excellent article here on CP, since 2004 !, by George Mamaladze on how to do this: [^].

If, by "snapshot" the clicked Control, you mean do a bitmap screen capture: yes, as Dave K. said, you are going to get into heavy use of the Win API and Platform Invoke. Search CodeProject for articles on screen capture.

I suspect (but don't have personal experience with) that once you know the Window (the app) that got the Click, that getting hold of the Control will require some clever coding.
"What Turing gave us for the first time (and without Turing you just couldn't do any of this) is he gave us a way of thinking about and taking seriously and thinking in a disciplined way about phenomena that have, as I like to say, trillions of moving parts.

Until the late 20th century, nobody knew how to take seriously a machine with a trillion moving parts. It's just mind-boggling." Daniel C. Dennett

GeneralRe: How I can find selected control on any window from mouse click c# Pin
delphix510-Dec-13 7:03
delphix510-Dec-13 7:03 
GeneralRe: How I can find selected control on any window from mouse click c# Pin
GuyThiebaut10-Dec-13 22:35
professionalGuyThiebaut10-Dec-13 22:35 
QuestionList<> VS Dictionary<,> Pin
HobbyProggy9-Dec-13 22:14
professionalHobbyProggy9-Dec-13 22:14 
AnswerRe: List<> VS Dictionary<,> Pin
Marco Bertschi9-Dec-13 22:24
protectorMarco Bertschi9-Dec-13 22:24 
AnswerRe: List<> VS Dictionary<,> PinPopular
Pete O'Hanlon9-Dec-13 22:59
mvePete O'Hanlon9-Dec-13 22:59 
GeneralRe: List<> VS Dictionary<,> Pin
HobbyProggy9-Dec-13 23:10
professionalHobbyProggy9-Dec-13 23:10 
GeneralRe: List<> VS Dictionary<,> Pin
Keith Barrow10-Dec-13 2:07
professionalKeith Barrow10-Dec-13 2:07 
GeneralRe: List<> VS Dictionary<,> Pin
Ravi Bhavnani12-Dec-13 9:37
professionalRavi Bhavnani12-Dec-13 9:37 
AnswerRe: List<> VS Dictionary<,> Pin
BillWoodruff10-Dec-13 3:23
professionalBillWoodruff10-Dec-13 3:23 
Questionxml in textbox for modifying Pin
Member 94738099-Dec-13 21:56
Member 94738099-Dec-13 21:56 
AnswerRe: xml in textbox for modifying Pin
Marco Bertschi9-Dec-13 22:32
protectorMarco Bertschi9-Dec-13 22:32 
AnswerRe: xml in textbox for modifying Pin
Simon_Whale9-Dec-13 22:50
Simon_Whale9-Dec-13 22:50 
QuestionRe: xml in textbox for modifying Pin
Member 94738099-Dec-13 22:54
Member 94738099-Dec-13 22:54 
AnswerRe: xml in textbox for modifying Pin
Simon_Whale9-Dec-13 22:57
Simon_Whale9-Dec-13 22:57 
QuestionRe: xml in textbox for modifying Pin
Member 94738099-Dec-13 23:49
Member 94738099-Dec-13 23:49 
AnswerRe: xml in textbox for modifying Pin
Simon_Whale9-Dec-13 23:54
Simon_Whale9-Dec-13 23:54 
GeneralRe: xml in textbox for modifying Pin
Member 947380910-Dec-13 2:55
Member 947380910-Dec-13 2:55 

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.