Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: problem using dataRelation in dot net Pin
Luc Pattyn28-Jul-10 5:44
sitebuilderLuc Pattyn28-Jul-10 5:44 
AnswerRe: problem using dataRelation in dot net PinPopular
Richard Blythe28-Jul-10 5:03
Richard Blythe28-Jul-10 5:03 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:23
Dhyanga28-Jul-10 5:23 
GeneralRe: problem using dataRelation in dot net Pin
Richard Blythe28-Jul-10 5:30
Richard Blythe28-Jul-10 5:30 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 5:37
Dhyanga28-Jul-10 5:37 
GeneralRe: problem using dataRelation in dot net Pin
Dhyanga28-Jul-10 7:24
Dhyanga28-Jul-10 7:24 
AnswerRe: problem using dataRelation in dot net Pin
Dhyanga29-Jul-10 8:40
Dhyanga29-Jul-10 8:40 
QuestionProblem with Send Keys to background process Pin
Member 372749928-Jul-10 3:54
Member 372749928-Jul-10 3:54 
Hi everybody. I'm developing an application that sends keystrokes to another background application. The problem is that i have so send a "Alt+F", but i can't get it to work.
I'm using PostMessage:

[DllImport("User32.Dll", EntryPoint = "PostMessageA")]
private static extern bool PostMessage(IntPtr hWnd, uint msg, int wParam, int lParam);

const int VK_ALT = 0x12;
const int WM_KEYDOWN = 0x100;
      
PostMessage(hWnd, WM_KEYDOWN, VK_ALT, 0);
PostMessage(hWnd, WM_KEYDOWN, VK_F, 0);


The result is that the background application "see" the "F", but no the "Alt".
Anybody has any idea how to fix it or how to do this without using SendKeys? Because the background application used to be minimized.

Greetings and thanks in advance. Smile | :)
AnswerRe: Problem with Send Keys to background process Pin
freakyit28-Jul-10 4:17
freakyit28-Jul-10 4:17 
GeneralRe: Problem with Send Keys to background process Pin
Member 372749928-Jul-10 7:21
Member 372749928-Jul-10 7:21 
GeneralRe: Problem with Send Keys to background process Pin
Covean28-Jul-10 22:25
Covean28-Jul-10 22:25 
GeneralRe: Problem with Send Keys to background process Pin
Member 372749929-Jul-10 2:21
Member 372749929-Jul-10 2:21 
GeneralRe: Problem with Send Keys to background process Pin
Covean29-Jul-10 2:52
Covean29-Jul-10 2:52 
General[SOLVED] Re: Problem with Send Keys to background process Pin
Member 372749929-Jul-10 3:33
Member 372749929-Jul-10 3:33 
AnswerRe: Problem with Send Keys to background process Pin
Covean28-Jul-10 4:19
Covean28-Jul-10 4:19 
QuestionShould not end my Application processes via Task Manager Pin
Krishna Varadharajan28-Jul-10 3:04
Krishna Varadharajan28-Jul-10 3:04 
AnswerRe: Should not end my Application processes via Task Manager Pin
PIEBALDconsult28-Jul-10 3:19
mvePIEBALDconsult28-Jul-10 3:19 
AnswerRe: Should not end my Application processes via Task Manager PinPopular
Roger Wright28-Jul-10 3:20
professionalRoger Wright28-Jul-10 3:20 
AnswerRe: Should not end my Application processes via Task Manager PinPopular
Dave Kreskowiak28-Jul-10 3:31
mveDave Kreskowiak28-Jul-10 3:31 
AnswerRe: Should not end my Application processes via Task Manager Pin
harold aptroot28-Jul-10 3:48
harold aptroot28-Jul-10 3:48 
AnswerRe: Should not end my Application processes via Task Manager Pin
Alan Balkany28-Jul-10 3:51
Alan Balkany28-Jul-10 3:51 
AnswerRe: Should not end my Application processes via Task Manager Pin
Yusuf28-Jul-10 4:13
Yusuf28-Jul-10 4:13 
AnswerRe: Should not end my Application processes via Task Manager Pin
freakyit28-Jul-10 4:21
freakyit28-Jul-10 4:21 
AnswerRe: Should not end my Application processes via Task Manager Pin
Sauro Viti28-Jul-10 5:18
professionalSauro Viti28-Jul-10 5:18 
AnswerRe: Should not end my Application processes via Task Manager Pin
Ravi Bhavnani28-Jul-10 11:39
professionalRavi Bhavnani28-Jul-10 11:39 

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.