Click here to Skip to main content
15,913,854 members
Home / Discussions / C#
   

C#

 
GeneralRe: Newbish Question on Child/Parent Issues Pin
Heath Stewart12-Jun-04 5:10
protectorHeath Stewart12-Jun-04 5:10 
GeneralTimeZone problem Pin
Andy *M*11-Jun-04 23:34
Andy *M*11-Jun-04 23:34 
GeneralRe: TimeZone problem Pin
Dave Kreskowiak12-Jun-04 2:08
mveDave Kreskowiak12-Jun-04 2:08 
GeneralRe: TimeZone problem Pin
Andy *M*12-Jun-04 2:58
Andy *M*12-Jun-04 2:58 
GeneralRe: TimeZone problem Pin
Heath Stewart12-Jun-04 5:07
protectorHeath Stewart12-Jun-04 5:07 
GeneralSending message to a window Pin
DavidR_r11-Jun-04 21:50
DavidR_r11-Jun-04 21:50 
GeneralRe: Sending message to a window Pin
Anonymous11-Jun-04 23:33
Anonymous11-Jun-04 23:33 
GeneralRe: Sending message to a window Pin
Heath Stewart12-Jun-04 5:03
protectorHeath Stewart12-Jun-04 5:03 
You simply P/Invoke SendMessage. See http://pinvoke.net/default.aspx/user32.SendMessage[^] for the syntax. This is how you would do it (well, one way) in a native C/C++ application (or even in VB6 and below by declaring the SendMessage API.

You'll need the HWND to the destination window, but it sounds like you already have it. You'll also most likely need to register your service either as a specific user with local login rights, or as the Local System with the "Allow service to interact with desktop" checked (search this message board using "Search comments" above for a previous reply about how to do this I wrote a day or two ago).

 

Microsoft MVP, Visual C#
My Articles
GeneralRFID - Capturing Data Pin
Tarakeshwar11-Jun-04 21:24
Tarakeshwar11-Jun-04 21:24 
GeneralRe: RFID - Capturing Data Pin
Andy *M*11-Jun-04 23:22
Andy *M*11-Jun-04 23:22 
GeneralRe: RFID - Capturing Data Pin
Heath Stewart12-Jun-04 4:51
protectorHeath Stewart12-Jun-04 4:51 
Generalc# Stream buffer problem Pin
Liskl11-Jun-04 19:14
Liskl11-Jun-04 19:14 
GeneralRe: c# Stream buffer problem Pin
leppie11-Jun-04 20:53
leppie11-Jun-04 20:53 
GeneralRe: c# Stream buffer problem Pin
Heath Stewart12-Jun-04 4:49
protectorHeath Stewart12-Jun-04 4:49 
Generaljetaudio5, winamp5 and wmp9 Pin
Taha Elsayed11-Jun-04 16:29
Taha Elsayed11-Jun-04 16:29 
GeneralRe: jetaudio5, winamp5 and wmp9 Pin
Arjan Einbu11-Jun-04 23:22
Arjan Einbu11-Jun-04 23:22 
GeneralFinding and repeating a character Pin
Rostrox11-Jun-04 15:23
Rostrox11-Jun-04 15:23 
GeneralRe: Finding and repeating a character Pin
Rostrox12-Jun-04 3:40
Rostrox12-Jun-04 3:40 
GeneralThread locking Pin
link_7911-Jun-04 12:57
link_7911-Jun-04 12:57 
GeneralRe: Thread locking Pin
Xiangyang Liu 刘向阳11-Jun-04 13:28
Xiangyang Liu 刘向阳11-Jun-04 13:28 
GeneralRe: Thread locking Pin
link_7911-Jun-04 13:48
link_7911-Jun-04 13:48 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:21
Meysam Mahfouzi11-Jun-04 17:21 
GeneralRe: Thread locking Pin
Xiangyang Liu 刘向阳12-Jun-04 3:01
Xiangyang Liu 刘向阳12-Jun-04 3:01 
GeneralRe: Thread locking Pin
link_7913-Jun-04 9:57
link_7913-Jun-04 9:57 
GeneralRe: Thread locking Pin
Meysam Mahfouzi11-Jun-04 17:13
Meysam Mahfouzi11-Jun-04 17:13 

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.