Click here to Skip to main content
15,914,481 members
Home / Discussions / C#
   

C#

 
GeneralFew menu extension (WinForms) Pin
TheDen19-Jan-05 15:20
TheDen19-Jan-05 15:20 
GeneralRe: Few menu extension (WinForms) Pin
Dave Kreskowiak20-Jan-05 3:53
mveDave Kreskowiak20-Jan-05 3:53 
GeneralRe: Few menu extension (WinForms) Pin
Charlie Williams20-Jan-05 5:54
Charlie Williams20-Jan-05 5:54 
GeneralExposing data to WMI Pin
ilkovm19-Jan-05 13:41
ilkovm19-Jan-05 13:41 
GeneralRe: Exposing data to WMI Pin
Heath Stewart20-Jan-05 6:25
protectorHeath Stewart20-Jan-05 6:25 
GeneralRe: Exposing data to WMI Pin
ilkovm20-Jan-05 12:44
ilkovm20-Jan-05 12:44 
QuestionHow can i handle my project in windows event Pin
m.rastgar19-Jan-05 11:36
m.rastgar19-Jan-05 11:36 
AnswerRe: How can i handle my project in windows event Pin
Heath Stewart20-Jan-05 6:09
protectorHeath Stewart20-Jan-05 6:09 
You can handle a number of Windows events using the Microsoft.Win32.SystemEvents class, which defines several static events.

For handling events from other arbitrary applications you need to hook native Windows messages. Search this site for "SetWindowsHookEx".

Please note that great care must be taken and you really should understand just what a Windows message is and how to write your managed code efficiently and robustly. When you hook native Windows messages you're responsible for the stability of not just your application but all of Windows. You must not throw exceptions, do long operations (like database look-ups), or anything that could slow down the machine. Remember, you're hooking a Windows message before it's dispatched to the destination window and Windows will wait for your handler to return. You could seriously compromise the stability of Windows, so take such a task very seriously and write good, clean, robust code.

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

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralControl development Pin
PaleyX19-Jan-05 11:30
PaleyX19-Jan-05 11:30 
GeneralRe: Control development Pin
Robert Rohde19-Jan-05 19:36
Robert Rohde19-Jan-05 19:36 
GeneralRe: Control development Pin
PaleyX19-Jan-05 22:02
PaleyX19-Jan-05 22:02 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 6:03
protectorHeath Stewart20-Jan-05 6:03 
GeneralRe: Control development Pin
PaleyX20-Jan-05 6:28
PaleyX20-Jan-05 6:28 
GeneralRe: Control development Pin
Dave Kreskowiak20-Jan-05 8:06
mveDave Kreskowiak20-Jan-05 8:06 
GeneralRe: Control development Pin
PaleyX20-Jan-05 8:27
PaleyX20-Jan-05 8:27 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 9:21
protectorHeath Stewart20-Jan-05 9:21 
GeneralRe: Control development Pin
Dave Kreskowiak20-Jan-05 13:16
mveDave Kreskowiak20-Jan-05 13:16 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 9:25
protectorHeath Stewart20-Jan-05 9:25 
GeneralRe: Control development Pin
PaleyX20-Jan-05 11:27
PaleyX20-Jan-05 11:27 
GeneralRe: Control development Pin
Heath Stewart20-Jan-05 14:10
protectorHeath Stewart20-Jan-05 14:10 
GeneralRe: Control development Pin
PaleyX20-Jan-05 3:18
PaleyX20-Jan-05 3:18 
QuestionHow to encryp the database file? Pin
m.rastgar19-Jan-05 10:48
m.rastgar19-Jan-05 10:48 
AnswerRe: How to encryp the database file? Pin
Developer.Guru19-Jan-05 11:05
sussDeveloper.Guru19-Jan-05 11:05 
GeneralTrouble creating webservice with custom object Pin
trufun10119-Jan-05 10:03
trufun10119-Jan-05 10:03 
Generalpdf rotated text w/ Acrobat 6.0 Pin
bwagz19-Jan-05 9:53
bwagz19-Jan-05 9:53 

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.