Click here to Skip to main content
15,895,797 members
Home / Discussions / C#
   

C#

 
AnswerRe: Passing an interface from C# to COM? Pin
James T. Johnson2-Jan-03 16:57
James T. Johnson2-Jan-03 16:57 
GeneralRe: Passing an interface from C# to COM? Pin
Bog2-Jan-03 17:13
Bog2-Jan-03 17:13 
Generalclosing a .exe from within a seperate .exe Pin
jtmtv182-Jan-03 8:25
jtmtv182-Jan-03 8:25 
GeneralRe: closing a .exe from within a seperate .exe Pin
Ranjan Banerji2-Jan-03 8:36
Ranjan Banerji2-Jan-03 8:36 
GeneralRe: closing a .exe from within a seperate .exe Pin
jtmtv182-Jan-03 8:48
jtmtv182-Jan-03 8:48 
GeneralRe: closing a .exe from within a seperate .exe Pin
Ranjan Banerji2-Jan-03 9:00
Ranjan Banerji2-Jan-03 9:00 
GeneralRe: closing a .exe from within a seperate .exe Pin
-G-4-Jan-03 6:28
-G-4-Jan-03 6:28 
GeneralRe: closing a .exe from within a seperate .exe Pin
Nick Parker2-Jan-03 9:06
protectorNick Parker2-Jan-03 9:06 
Ranjan Banerji wrote:
This could be of help. If C# does have a function, I will probably be calling some Windows API. Just a hunch.

You would need to use P/Invoke to send the WM_CLOSE message in C#. You will need the handle to the current running executable for this as well.
public const int WM_CLOSE = 0x0010; 
//........
[DllImport("user32.dll",CharSet=CharSet.Auto)]
static public extern long SendMessage(IntPtr hWnd, uint Msg, int wParam, int lParam);





Nick Parker

You see the Standards change. - Fellow co-worker


QuestionRestricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 7:01
Nnamdi Onyeyiri2-Jan-03 7:01 
AnswerRe: Restricted access to properties? Pin
James T. Johnson2-Jan-03 9:35
James T. Johnson2-Jan-03 9:35 
GeneralRe: Restricted access to properties? Pin
Nnamdi Onyeyiri2-Jan-03 11:55
Nnamdi Onyeyiri2-Jan-03 11:55 
Generalmessage box stuff Pin
jtmtv182-Jan-03 6:59
jtmtv182-Jan-03 6:59 
GeneralRe: message box stuff Pin
Ray Cassick2-Jan-03 7:55
Ray Cassick2-Jan-03 7:55 
GeneralRe: message box stuff Pin
Brian Olej2-Jan-03 14:23
Brian Olej2-Jan-03 14:23 
GeneralArray Serialization - kinda urgent Pin
Mr BallyDaHob2-Jan-03 5:18
Mr BallyDaHob2-Jan-03 5:18 
GeneralQuestion about inherited/custom control.. Pin
Randy Williams2-Jan-03 5:08
Randy Williams2-Jan-03 5:08 
GeneralRe: Question about inherited/custom control.. Pin
leppie2-Jan-03 9:35
leppie2-Jan-03 9:35 
GeneralRe: Question about inherited/custom control.. Pin
Randy Williams2-Jan-03 9:41
Randy Williams2-Jan-03 9:41 
GeneralArchitecture Design Advice Pin
Bill West2-Jan-03 5:07
Bill West2-Jan-03 5:07 
GeneralRe: Architecture Design Advice Pin
Anonymous2-Jan-03 10:08
Anonymous2-Jan-03 10:08 
GeneralRe: Architecture Design Advice Pin
leppie2-Jan-03 11:37
leppie2-Jan-03 11:37 
GeneralDoes C# have anything like JAVA Applets Pin
Hudson2-Jan-03 4:35
Hudson2-Jan-03 4:35 
GeneralRe: Does C# have anything like JAVA Applets Pin
Michael P Butler2-Jan-03 4:43
Michael P Butler2-Jan-03 4:43 
GeneralRe: Does C# have anything like JAVA Applets Pin
James T. Johnson2-Jan-03 17:06
James T. Johnson2-Jan-03 17:06 
QuestionDoes something look goofy here? Pin
Nick Parker2-Jan-03 4:25
protectorNick Parker2-Jan-03 4:25 

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.