Click here to Skip to main content
15,900,589 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to turn off executing Load event at design time feature? Pin
Dave Kreskowiak22-Feb-06 1:52
mveDave Kreskowiak22-Feb-06 1:52 
QuestionMedia Player Control Pin
Sean8920-Feb-06 13:57
Sean8920-Feb-06 13:57 
AnswerRe: Media Player Control Pin
Judah Gabriel Himango20-Feb-06 16:33
sponsorJudah Gabriel Himango20-Feb-06 16:33 
QuestionDynamically registering events with a remote object Pin
Steven Williamson20-Feb-06 12:21
Steven Williamson20-Feb-06 12:21 
QuestionUse VS2005 designer to create Panel? Pin
Ravi Bhavnani20-Feb-06 11:57
professionalRavi Bhavnani20-Feb-06 11:57 
AnswerRe: Use VS2005 designer to create Panel? Pin
SHaroz20-Feb-06 13:15
SHaroz20-Feb-06 13:15 
GeneralRe: Use VS2005 designer to create Panel? Pin
Ravi Bhavnani20-Feb-06 13:21
professionalRavi Bhavnani20-Feb-06 13:21 
QuestionRemote Copy/paste Pin
IceWater4220-Feb-06 11:55
IceWater4220-Feb-06 11:55 
I am trying to get a commercial program to copy it's text file to the clipboard.

This code activates the correct window, brings it to the foreground and processes the mouse clicks:

input.mi.dx = 950;
input.mi.dy = 300;

SetCursorPos(input.mi.dx, input.mi.dy);
SetForegroundWindow(commercialWindowHandle);

input.mi.dwFlags = (MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTDOWN);
resSendInput = SendInput(1, ref input, Marshal.SizeOf(input));

input.mi.dwFlags = (MOUSEEVENTF_ABSOLUTE + MOUSEEVENTF_LEFTUP);
resSendInput = SendInput(1, ref input, Marshal.SizeOf(input));

I have verified that the above code works all the time ... but the following code sometimes works ... mosttimes doesn't !!! :

SendKeys.Send("^{a}"); // Select all text
SendKeys.Send("^{c}"); // Copy to clipboard

(It would also be nice if i could set the mouseDown and mouseUp relative to the foreground window instead of to the absolute screen but that is not my primary concern right now)

Thanks in advance for any insight.

-- modified at 19:38 Monday 20th February, 2006
AnswerRe: Remote Copy/paste Pin
Judah Gabriel Himango20-Feb-06 16:36
sponsorJudah Gabriel Himango20-Feb-06 16:36 
GeneralRe: Remote Copy/paste Pin
IceWater4221-Feb-06 2:14
IceWater4221-Feb-06 2:14 
QuestionMeta tag reading in c# Pin
rizwan_rashid20-Feb-06 11:25
rizwan_rashid20-Feb-06 11:25 
AnswerRe: Meta tag reading in c# Pin
Judah Gabriel Himango20-Feb-06 16:41
sponsorJudah Gabriel Himango20-Feb-06 16:41 
Questiononclick in Textbox windows app Pin
Cuu20-Feb-06 9:54
Cuu20-Feb-06 9:54 
AnswerRe: onclick in Textbox windows app Pin
Sean8920-Feb-06 10:44
Sean8920-Feb-06 10:44 
GeneralRe: onclick in Textbox windows app Pin
Cuu20-Feb-06 16:09
Cuu20-Feb-06 16:09 
AnswerRe: onclick in Textbox windows app Pin
microsoc20-Feb-06 14:32
microsoc20-Feb-06 14:32 
GeneralRe: onclick in Textbox windows app Pin
Cuu20-Feb-06 16:14
Cuu20-Feb-06 16:14 
QuestionSelect Statement Formating, need help. Pin
zaboboa20-Feb-06 9:29
zaboboa20-Feb-06 9:29 
AnswerRe: Select Statement Formating, need help. Pin
Steve Maier20-Feb-06 9:52
professionalSteve Maier20-Feb-06 9:52 
GeneralRe: Select Statement Formating, need help. Pin
zaboboa21-Feb-06 1:58
zaboboa21-Feb-06 1:58 
AnswerRe: Select Statement Formating, need help. Pin
veeru_syd27-Feb-06 14:11
veeru_syd27-Feb-06 14:11 
Questionforbid copying of DB (MS Access) Pin
berlin200520-Feb-06 9:28
berlin200520-Feb-06 9:28 
AnswerRe: forbid copying of DB (MS Access) Pin
Dave Kreskowiak20-Feb-06 9:53
mveDave Kreskowiak20-Feb-06 9:53 
QuestionDefine print area in C#.net 2003 Pin
berlin200520-Feb-06 9:25
berlin200520-Feb-06 9:25 
QuestionVS QueryBuilder Pin
Mehdy Khoshrou20-Feb-06 9:19
Mehdy Khoshrou20-Feb-06 9:19 

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.