Click here to Skip to main content
15,888,579 members
Home / Discussions / C#
   

C#

 
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 
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 
Hi! I found the solution! it is a mix between a sendkeys and postmessage, that works Smile | :)

First, set the "ControlKey" to "active" (i think it's like if we "press" the keyboard controlkey), then send the PostMessage to the hWnd (application), and then restore the "ControlKey" state.

keybd_event(VK_CONTROL, (byte)MapVirtualKey(VK_CONTROL, 0), 0, 0); // Control Down
PostMessage(hWnd, WM_KEYDOWN, (uint)VK_F, 0); // F
keybd_event(VK_CONTROL, (byte)MapVirtualKey(VK_CONTROL, 0), 2, 0); // Control Up


Thanks to all for the replies. Smile | :)
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 
QuestionMessage Removed Pin
28-Jul-10 1:57
willworknow128-Jul-10 1:57 
AnswerRe: Formatting a RichTextBox with indents/columns (or any other control) Pin
Luc Pattyn28-Jul-10 2:30
sitebuilderLuc Pattyn28-Jul-10 2:30 
QuestionDateTime.Now.ToLongDateString() Pin
Member 387988128-Jul-10 1:07
Member 387988128-Jul-10 1:07 
AnswerRe: DateTime.Now.ToLongDateString() Pin
OriginalGriff28-Jul-10 1:24
mveOriginalGriff28-Jul-10 1:24 
GeneralRe: DateTime.Now.ToLongDateString() Pin
Member 387988128-Jul-10 1:46
Member 387988128-Jul-10 1:46 
GeneralRe: DateTime.Now.ToLongDateString() Pin
OriginalGriff28-Jul-10 1:53
mveOriginalGriff28-Jul-10 1: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.