Click here to Skip to main content
16,006,605 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to use delegates? Pin
mcsbzu2-Sep-04 20:45
mcsbzu2-Sep-04 20:45 
GeneralRe: how to use delegates? Pin
mav.northwind2-Sep-04 21:31
mav.northwind2-Sep-04 21:31 
GeneralRe: how to use delegates? Pin
sreejith ss nair2-Sep-04 20:48
sreejith ss nair2-Sep-04 20:48 
Generaldraw a dynamic polyline join line Pin
luming11223344552-Sep-04 16:43
luming11223344552-Sep-04 16:43 
QuestionCan I draw my system cursor in Direct3D? Pin
redleafong2-Sep-04 16:27
redleafong2-Sep-04 16:27 
AnswerRe: Can I draw my system cursor in Direct3D? Pin
LongRange.Shooter3-Sep-04 7:00
LongRange.Shooter3-Sep-04 7:00 
Generalcapturing keydown events Pin
jtmtv182-Sep-04 12:38
jtmtv182-Sep-04 12:38 
GeneralRe: capturing keydown events Pin
Heath Stewart2-Sep-04 14:47
protectorHeath Stewart2-Sep-04 14:47 
There is currently no "managed .Net way" of doing this, no. You need to implement system hooks by P/Invoking the necessary APIs. In fact, much of the .NET Framework BCL - especially System.Windows.Forms.dll - encapsulates native functionality already. You can see this by examing the BCL assemblies in the IL Disassembler (ildasm.exe that ships with the SDK) or another disassembler/decompiler of your liking. Read Global System Hooks in .NET[^].

Be very careful, however. System hooks need to be fast since all messages from a particular class of messages are passed through the hook. Some people writing managed code often take for granted what's given to you for free without thinking (or knowing) about the code that provides such functionality. And always make sure that your code will not currupt the system message pump unnecessarily.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
QuestionHow do I unload an assembly Pin
khariv2-Sep-04 11:46
khariv2-Sep-04 11:46 
AnswerRe: How do I unload an assembly Pin
Charlie Williams2-Sep-04 12:45
Charlie Williams2-Sep-04 12:45 
GeneralSingle instance app, file extension problem HELP! Pin
cdengler2-Sep-04 11:15
cdengler2-Sep-04 11:15 
GeneralRe: Single instance app, file extension problem HELP! Pin
Heath Stewart2-Sep-04 11:42
protectorHeath Stewart2-Sep-04 11:42 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind2-Sep-04 20:31
mav.northwind2-Sep-04 20:31 
GeneralRe: Single instance app, file extension problem HELP! Pin
cdengler3-Sep-04 15:49
cdengler3-Sep-04 15:49 
GeneralRe: Single instance app, file extension problem HELP! Pin
mav.northwind3-Sep-04 20:53
mav.northwind3-Sep-04 20:53 
GeneralExpense Tracker tool Pin
MT_SEA2-Sep-04 10:05
MT_SEA2-Sep-04 10:05 
GeneralRe: Expense Tracker tool Pin
Heath Stewart2-Sep-04 11:11
protectorHeath Stewart2-Sep-04 11:11 
GeneralC# System Window bar gradient colors Pin
Tristan Rhodes2-Sep-04 9:39
Tristan Rhodes2-Sep-04 9:39 
GeneralRe: C# System Window bar gradient colors Pin
Heath Stewart2-Sep-04 14:43
protectorHeath Stewart2-Sep-04 14:43 
GeneralRe: C# System Window bar gradient colors Pin
Tristan Rhodes2-Sep-04 17:01
Tristan Rhodes2-Sep-04 17:01 
GeneralRe: C# System Window bar gradient colors Pin
Heath Stewart3-Sep-04 6:13
protectorHeath Stewart3-Sep-04 6:13 
GeneralRe: C# System Window bar gradient colors Pin
Roland Bär2-Sep-04 20:16
Roland Bär2-Sep-04 20:16 
GeneralVS.NET 2005 Refresh Pin
Werdna2-Sep-04 9:25
Werdna2-Sep-04 9:25 
General.Net DateTime type and SQL DateTime type Pin
matthias s.2-Sep-04 7:32
matthias s.2-Sep-04 7:32 
GeneralRe: .Net DateTime type and SQL DateTime type Pin
partyganger2-Sep-04 8:37
partyganger2-Sep-04 8: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.