Click here to Skip to main content
15,908,673 members
Home / Discussions / C#
   

C#

 
GeneralRe: Close Firefox with C# Pin
PRMan!!!16-Oct-09 12:12
PRMan!!!16-Oct-09 12:12 
AnswerRe: Close Firefox with C# Pin
benjymous14-Aug-09 1:37
benjymous14-Aug-09 1:37 
GeneralRe: Close Firefox with C# Pin
nhqlbaislwfiikqraqnm15-Aug-09 10:24
nhqlbaislwfiikqraqnm15-Aug-09 10:24 
QuestionAForge.NET Pin
SP Vilakazi13-Aug-09 21:27
SP Vilakazi13-Aug-09 21:27 
AnswerRe: AForge.NET Pin
Pete O'Hanlon13-Aug-09 21:57
mvePete O'Hanlon13-Aug-09 21:57 
Questiontriggering the mouse click and hold event Pin
prasadbuddhika13-Aug-09 21:21
prasadbuddhika13-Aug-09 21:21 
AnswerRe: triggering the mouse click and hold event Pin
musefan13-Aug-09 21:52
musefan13-Aug-09 21:52 
AnswerRe: triggering the mouse click and hold event Pin
OriginalGriff13-Aug-09 21:54
mveOriginalGriff13-Aug-09 21:54 
I'm not certain what you are trying to achieve, so is this what you want:

1) The user presses the mouse down, nothing happens immediately.
2) When the user has held the mouse button down for some time, something happens
3) The user then releases the mouse button.

If so, then the way to do it is:
In the MouseDown event, set a bool to indicate the mouse is down, and start a timer.
If you get a MouseUp event, and the bool is true, kill the timer, clear the bool.
If you get a Timer.Tick event, and the bool is true, kill the timer, and perform the action.

Note that this may not work with some controls, as they handle mouse events differently (Button, CheckBox, ComboBox, and RadioButton) - see here[^]for sequence details.

No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.

This message is made of fully recyclable Zeros and Ones

QuestionHelp with Entity framework approach. Pin
SpiveyC#13-Aug-09 21:01
SpiveyC#13-Aug-09 21:01 
AnswerRe: Help with Entity framework approach. Pin
Henry Minute14-Aug-09 13:46
Henry Minute14-Aug-09 13:46 
GeneralRe: Help with Entity framework approach. Pin
SpiveyC#14-Aug-09 23:22
SpiveyC#14-Aug-09 23:22 
QuestionDynamically Loading Custom Control Pin
Matt Cavanagh13-Aug-09 20:46
Matt Cavanagh13-Aug-09 20:46 
AnswerRe: Dynamically Loading Custom Control Pin
SpiveyC#13-Aug-09 21:03
SpiveyC#13-Aug-09 21:03 
GeneralRe: Dynamically Loading Custom Control Pin
Matt Cavanagh13-Aug-09 21:16
Matt Cavanagh13-Aug-09 21:16 
AnswerRe: Dynamically Loading Custom Control Pin
0x3c013-Aug-09 21:45
0x3c013-Aug-09 21:45 
GeneralRe: Dynamically Loading Custom Control Pin
Matt Cavanagh13-Aug-09 22:05
Matt Cavanagh13-Aug-09 22:05 
NewsRe: Dynamically Loading Custom Control Pin
Matt Cavanagh14-Aug-09 1:33
Matt Cavanagh14-Aug-09 1:33 
QuestionAsyncCallback problem? Pin
Benny_Lava13-Aug-09 20:20
Benny_Lava13-Aug-09 20:20 
AnswerRe: AsyncCallback problem? Pin
Luc Pattyn14-Aug-09 0:41
sitebuilderLuc Pattyn14-Aug-09 0:41 
QuestionResizing Forms as per Screen Resolution Pin
Sanket.Patil13-Aug-09 20:19
Sanket.Patil13-Aug-09 20:19 
AnswerRe: Resizing Forms as per Screen Resolution Pin
0x3c013-Aug-09 22:10
0x3c013-Aug-09 22:10 
QuestionHelp to get a window to lock focus Pin
False Chicken13-Aug-09 18:50
False Chicken13-Aug-09 18:50 
AnswerRe: Help to get a window to lock focus Pin
Abhijit Jana13-Aug-09 19:49
professionalAbhijit Jana13-Aug-09 19:49 
GeneralRe: Help to get a window to lock focus Pin
False Chicken13-Aug-09 21:04
False Chicken13-Aug-09 21:04 
QuestionSetup and deployment Pin
vijaylumar13-Aug-09 18:49
vijaylumar13-Aug-09 18:49 

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.