Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
GeneralRe: from a datagrid in one to a textbox in another form Pin
Mazdak14-Mar-04 4:45
Mazdak14-Mar-04 4:45 
GeneralRe: from a datagrid in one to a textbox in another form Pin
ASGill14-Mar-04 13:44
ASGill14-Mar-04 13:44 
GeneralRe: from a datagrid in one to a textbox in another form Pin
Mazdak14-Mar-04 20:23
Mazdak14-Mar-04 20:23 
GeneralConvert Char[] to string Pin
dabuskol13-Mar-04 20:57
dabuskol13-Mar-04 20:57 
GeneralRe: Convert Char[] to string Pin
Heath Stewart15-Mar-04 3:20
protectorHeath Stewart15-Mar-04 3:20 
GeneralInsert Messages into game chat from c# app Pin
lordjpg13-Mar-04 20:08
lordjpg13-Mar-04 20:08 
GeneralRe: Insert Messages into game chat from c# app Pin
Mazdak14-Mar-04 5:03
Mazdak14-Mar-04 5:03 
GeneralRe: Insert Messages into game chat from c# app Pin
Heath Stewart15-Mar-04 3:37
protectorHeath Stewart15-Mar-04 3:37 
One way is to find the control's HWND (window handle) using assorted native APIs like FindWindow, which you can P/Invoke in C#. If you use an application like Spy++ (that is installed as part of the Platform SDK, which can be installed with VS.NET and is by default), you can find the window class for the chat window. Once you get that HWND, you can call SendMessage (which you must also P/Invoke) using the WM_SETTEXT (0x000c) message (or whatever message the control uses to place text in the buffer). You can find this easily enough using Spy++ and logging the messages posted to the application pump for the control. Of course, this is assuming that you can interact with the application like this. A friend of mine who used to play Everquest some time ago found that older versions of the application 1) didn't run in windowed mode, and 2) would quit if any other window because active. This is no longer true for EQ, but it might be for your game. All you can do is try it.

 

Microsoft MVP, Visual C#
My Articles
GeneralPrinting a web page Pin
draco_iii13-Mar-04 14:12
draco_iii13-Mar-04 14:12 
GeneralRe: Printing a web page Pin
Heath Stewart15-Mar-04 3:30
protectorHeath Stewart15-Mar-04 3:30 
GeneralRe: Printing a web page Pin
Michael Flanakin17-Mar-04 19:00
Michael Flanakin17-Mar-04 19:00 
GeneralRendering successive blanks in HTML Pin
Gary Hyslop at home13-Mar-04 8:31
Gary Hyslop at home13-Mar-04 8:31 
GeneralRe: Rendering successive blanks in HTML Pin
Dave Kreskowiak14-Mar-04 12:26
mveDave Kreskowiak14-Mar-04 12:26 
GeneralRe: Rendering successive blanks in HTML Pin
Heath Stewart15-Mar-04 6:48
protectorHeath Stewart15-Mar-04 6:48 
GeneralFocus Problems in C# Pin
ptrainor13-Mar-04 7:56
ptrainor13-Mar-04 7:56 
GeneralRe: Focus Problems in C# Pin
ptrainor14-Mar-04 6:43
ptrainor14-Mar-04 6:43 
GeneralChanging Form Client Region Pin
forak13-Mar-04 6:58
forak13-Mar-04 6:58 
GeneralRe: Changing Form Client Region Pin
Mathew Hall13-Mar-04 16:45
Mathew Hall13-Mar-04 16:45 
GeneralDirectX Bitmaps Pin
Flecko13-Mar-04 5:02
Flecko13-Mar-04 5:02 
GeneralRe: DirectX Bitmaps Pin
Hiro_Antagonist13-Mar-04 10:33
Hiro_Antagonist13-Mar-04 10:33 
GeneralRe: DirectX Bitmaps Pin
Flecko13-Mar-04 11:32
Flecko13-Mar-04 11:32 
GeneralRe: Extract Data from XML -> DataSet -> DataGrid Pin
John Fisher13-Mar-04 7:57
John Fisher13-Mar-04 7:57 
GeneralConsole Application Pin
mil_an13-Mar-04 3:58
mil_an13-Mar-04 3:58 
GeneralRe: Console Application Pin
John Fisher13-Mar-04 4:26
John Fisher13-Mar-04 4:26 
GeneralRe: Console Application Pin
mil_an13-Mar-04 10:24
mil_an13-Mar-04 10:24 

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.