Click here to Skip to main content
16,005,206 members
Home / Discussions / C#
   

C#

 
AnswerRe: dates Pin
Christian Graus9-Nov-06 13:02
protectorChristian Graus9-Nov-06 13:02 
AnswerRe: dates Pin
saqib829-Nov-06 18:18
saqib829-Nov-06 18:18 
AnswerRe: dates Pin
aamironline10-Nov-06 3:19
aamironline10-Nov-06 3:19 
AnswerRe: dates Pin
aPerfectCircle10-Nov-06 5:52
aPerfectCircle10-Nov-06 5:52 
QuestionNumericUpDown (detect if value is inc'd or dec'd) Pin
bankai1239-Nov-06 11:37
bankai1239-Nov-06 11:37 
QuestionRe: NumericUpDown (detect if value is inc'd or dec'd) Pin
saqib829-Nov-06 18:21
saqib829-Nov-06 18:21 
AnswerRe: NumericUpDown (detect if value is inc'd or dec'd) Pin
Stefan Troschuetz9-Nov-06 21:30
Stefan Troschuetz9-Nov-06 21:30 
QuestionTricky Tricky Mouse events Pin
Torin_DWC9-Nov-06 11:12
Torin_DWC9-Nov-06 11:12 
Ok I have an application that I want to have the user click a button and then have the program take control of the mouse.

So for instance you could click a button and then the program would move the mouse to your start menu -> programs -> applications -> notepad

I have the

[DLLImport("user32.dll", EntryPoint = "SendMessage")]
static extern IntPtr SendMessage(IntPtr hWnd, unit Msg, UintPtr wParam, IntPtr lParam);

but I don't know if i'm forming my message correctly or even if this is the way to go

i'm trying lines of code such as:

WM_LBUTTONDOWN is 0x0201 by the way

SendMessage(0, 0x0201, new UintPtr(0x0201), new IntPtr(5 * 0x10000 + 5));

This should cause the restore/minimize/close window to pop up in the top left corner of the screen, if
1.) the IntPtr hWnd can be set to 0, I was kinda hoping this would make the message global
2.) I didn't screw up anything else, the Msg and wParam seem wrong to me...

the crazieness with the lParam is because it's two 16 bit variables in one, the first is the Y value the second is the X value.

i've also tried the form's handle with the x,y cords set to "this.Location.X + 7, this.Location.X + 7" so that I could hit my program's own menu.... help?


-Ian McCloy
QuestionLooping in calendar Pin
digitalhand9-Nov-06 10:38
digitalhand9-Nov-06 10:38 
AnswerRe: Looping in calendar Pin
Christian Graus9-Nov-06 10:47
protectorChristian Graus9-Nov-06 10:47 
Questionhow to pass parameter to CrystalReports? Pin
hdv2129-Nov-06 10:30
hdv2129-Nov-06 10:30 
QuestionCentre a Popup window using C# Pin
Jagannatha1089-Nov-06 10:17
Jagannatha1089-Nov-06 10:17 
AnswerRe: Centre a Popup window using C# Pin
sujithkumarsl9-Nov-06 18:29
sujithkumarsl9-Nov-06 18:29 
QuestionPage.RegisterStartupScript("PopupScript", popupScript); Pin
Jagannatha1089-Nov-06 9:07
Jagannatha1089-Nov-06 9:07 
AnswerRe: Page.RegisterStartupScript("PopupScript", popupScript); Pin
indianet9-Nov-06 9:52
indianet9-Nov-06 9:52 
GeneralRe: Page.RegisterStartupScript("PopupScript", popupScript); Pin
Jagannatha1089-Nov-06 9:54
Jagannatha1089-Nov-06 9:54 
GeneralRe: Page.RegisterStartupScript("PopupScript", popupScript); Pin
Guffa9-Nov-06 13:58
Guffa9-Nov-06 13:58 
AnswerRe: Page.RegisterStartupScript("PopupScript", popupScript); Pin
Guffa9-Nov-06 14:00
Guffa9-Nov-06 14:00 
QuestionEnvironment Variables not Updating Pin
jgallen239-Nov-06 7:53
jgallen239-Nov-06 7:53 
AnswerRe: Environment Variables not Updating Pin
Ami Bar9-Nov-06 9:29
Ami Bar9-Nov-06 9:29 
GeneralRe: Environment Variables not Updating Pin
jgallen239-Nov-06 9:33
jgallen239-Nov-06 9:33 
GeneralRe: Environment Variables not Updating Pin
Ami Bar9-Nov-06 10:10
Ami Bar9-Nov-06 10:10 
QuestionScreen Shot Pin
Jad Jadallah9-Nov-06 6:54
Jad Jadallah9-Nov-06 6:54 
AnswerRe: Screen Shot Pin
Jun Du9-Nov-06 7:54
Jun Du9-Nov-06 7:54 
AnswerRe: Screen Shot Pin
Eric Dahlvang9-Nov-06 10:59
Eric Dahlvang9-Nov-06 10:59 

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.