Click here to Skip to main content
15,923,015 members
Home / Discussions / C#
   

C#

 
AnswerRe: GF(256) Multiplication Pin
Richard MacCutchan5-Mar-15 21:08
mveRichard MacCutchan5-Mar-15 21:08 
GeneralRe: GF(256) Multiplication Pin
harold aptroot5-Mar-15 23:12
harold aptroot5-Mar-15 23:12 
GeneralRe: GF(256) Multiplication Pin
Richard MacCutchan5-Mar-15 23:56
mveRichard MacCutchan5-Mar-15 23:56 
GeneralRe: GF(256) Multiplication Pin
harold aptroot6-Mar-15 0:04
harold aptroot6-Mar-15 0:04 
GeneralRe: GF(256) Multiplication Pin
Richard MacCutchan6-Mar-15 0:15
mveRichard MacCutchan6-Mar-15 0:15 
GeneralRe: GF(256) Multiplication Pin
harold aptroot6-Mar-15 0:21
harold aptroot6-Mar-15 0:21 
AnswerRe: GF(256) Multiplication Pin
harold aptroot6-Mar-15 0:24
harold aptroot6-Mar-15 0:24 
QuestionNeed Function to Redact SSNs and CCs from a string Pin
AnneThorne5-Mar-15 10:26
AnneThorne5-Mar-15 10:26 
SuggestionRe: Need Function to Redact SSNs and CCs from a string Pin
ZurdoDev5-Mar-15 10:43
professionalZurdoDev5-Mar-15 10:43 
GeneralRe: Need Function to Redact SSNs and CCs from a string Pin
AnneThorne5-Mar-15 10:56
AnneThorne5-Mar-15 10:56 
GeneralRe: Need Function to Redact SSNs and CCs from a string Pin
AnneThorne5-Mar-15 11:28
AnneThorne5-Mar-15 11:28 
GeneralRe: Need Function to Redact SSNs and CCs from a string Pin
AnneThorne5-Mar-15 12:10
AnneThorne5-Mar-15 12:10 
QuestionMessage Removed Pin
5-Mar-15 8:19
professionalN_tro_P5-Mar-15 8:19 
AnswerRe: EntityFramework Disable Lazy loading Pin
Dave Kreskowiak5-Mar-15 10:10
mveDave Kreskowiak5-Mar-15 10:10 
GeneralMessage Removed Pin
5-Mar-15 11:02
professionalN_tro_P5-Mar-15 11:02 
GeneralRe: EntityFramework Disable Lazy loading Pin
Matt T Heffron5-Mar-15 12:00
professionalMatt T Heffron5-Mar-15 12:00 
GeneralMessage Removed Pin
5-Mar-15 11:24
professionalN_tro_P5-Mar-15 11:24 
GeneralRe: EntityFramework Disable Lazy loading Pin
Dave Kreskowiak5-Mar-15 12:09
mveDave Kreskowiak5-Mar-15 12:09 
AnswerRe: EntityFramework Disable Lazy loading Pin
Gerry Schmitz5-Mar-15 12:23
mveGerry Schmitz5-Mar-15 12:23 
Questionsolved: WinForms: What would make closing a MainForm require two Clicks on the ControlBox ? Pin
BillWoodruff5-Mar-15 2:08
professionalBillWoodruff5-Mar-15 2:08 
AnswerRe: WinForms: What would make closing a MainForm require two Clicks on the ControlBox ? Pin
Alan N5-Mar-15 2:58
Alan N5-Mar-15 2:58 
GeneralRe: WinForms: What would make closing a MainForm require two Clicks on the ControlBox ? Pin
BillWoodruff5-Mar-15 3:50
professionalBillWoodruff5-Mar-15 3:50 
QuestionMemoryStream with PDF Pin
Jassim Rahma4-Mar-15 22:18
Jassim Rahma4-Mar-15 22:18 
AnswerRe: MemoryStream with PDF Pin
Pete O'Hanlon4-Mar-15 22:21
mvePete O'Hanlon4-Mar-15 22:21 
QuestionSend Mouse motion using sendMessage() Pin
Omarkkk4-Mar-15 22:10
Omarkkk4-Mar-15 22:10 
Hi all,,
I was reading about sending a mouse motion to for example Notepad..
I tried to implement something to help me send a right click to Notepad so when the event fired it shows that there is a right click fired and the right click menu appears in the notepad..

I wrote this code but I'm not sure it's correct -no error but it doesn't work..

// to send the mouse Message
C#
[DllImport("user32.dll")]
       public static extern int SendMessage(int hWnd,uint Msg, int wParam,int lParam);


// mouse input

C#
private const uint WM_RBUTTONDOWN = 0x0204;
private const uint WM_RBUTTONUP = 0x0205;


// event handler

C#
private void button6_Click(object sender, EventArgs e)
        {
int window = FindWindow(null, "Notepad");
            SendMessage(window, WM_RBUTTONDOWN, 0, 0);
            SendMessage(window, WM_RBUTTONUP, 0, 0);
        }


it does not work for me,,
Do I need to add extra code or functions for that??

Thanks Smile | :)

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.