Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.67K
~2K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags
.net:vb.net x 1
1 Posted Topic
//my shortest solution for this problem: private bool mouseUp = false; private const int holdButtonDuration = 2000; //milliseconds private void btnTest_MouseDown(object sender, MouseEventArgs e) { mouseUp = false; Stopwatch sw = new Stopwatch(); sw.Start(); while (e.Button == MouseButtons.Left && e.Clicks == 1 && (mouseUp == false && sw.ElapsedMilliseconds < holdButtonDuration)) …
The End.