Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
QuestionShake Logic. Pin
Baeltazor3-Aug-09 15:44
Baeltazor3-Aug-09 15:44 
AnswerRe: Shake Logic. Pin
Christian Graus3-Aug-09 16:30
protectorChristian Graus3-Aug-09 16:30 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 17:13
Baeltazor3-Aug-09 17:13 
AnswerRe: Shake Logic. Pin
codemunkeh3-Aug-09 17:47
codemunkeh3-Aug-09 17:47 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 17:51
Baeltazor3-Aug-09 17:51 
GeneralRe: Shake Logic. Pin
codemunkeh3-Aug-09 18:11
codemunkeh3-Aug-09 18:11 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 18:15
Baeltazor3-Aug-09 18:15 
AnswerRe: Shake Logic. Pin
codemunkeh3-Aug-09 18:22
codemunkeh3-Aug-09 18:22 
OK sorry for the previous ludicrous suggestion.

I once had a borderless window, and to handle the movement, I had added a button which, when dragged, would take the window with it. I know you're trying to reduce clicks but this could work.

MouseDown:
- set "moving" to true
- store mouse-coords in "lastLoc"
- store window position to "startPos"
- start a timer

MouseMove:
- if moving,
- move window by delta (current location - lastLoc)
- update lastLoc

MouseUp:
- set "moving" to false
- stop the timer
- compare startPos with current position, etc.


Ninja (the Nerd)

Confused? You will be...

GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 18:53
Baeltazor3-Aug-09 18:53 
GeneralRe: Shake Logic. Pin
codemunkeh3-Aug-09 19:17
codemunkeh3-Aug-09 19:17 
GeneralRe: Shake Logic. Pin
Baeltazor3-Aug-09 19:26
Baeltazor3-Aug-09 19:26 
QuestionBest way to know which property changed Pin
Xmen Real 3-Aug-09 14:52
professional Xmen Real 3-Aug-09 14:52 
AnswerRe: Best way to know which property changed Pin
N a v a n e e t h3-Aug-09 16:24
N a v a n e e t h3-Aug-09 16:24 
GeneralRe: Best way to know which property changed Pin
Xmen Real 3-Aug-09 16:41
professional Xmen Real 3-Aug-09 16:41 
AnswerRe: Best way to know which property changed Pin
dan!sh 3-Aug-09 17:58
professional dan!sh 3-Aug-09 17:58 
GeneralRe: Best way to know which property changed Pin
Xmen Real 3-Aug-09 20:54
professional Xmen Real 3-Aug-09 20:54 
Questionbyte array Pin
peishen883-Aug-09 10:18
peishen883-Aug-09 10:18 
AnswerRe: byte array Pin
stancrm3-Aug-09 10:30
stancrm3-Aug-09 10:30 
GeneralRe: byte array Pin
Luc Pattyn3-Aug-09 10:37
sitebuilderLuc Pattyn3-Aug-09 10:37 
GeneralRe: byte array Pin
peishen883-Aug-09 10:54
peishen883-Aug-09 10:54 
GeneralRe: byte array Pin
Luc Pattyn3-Aug-09 10:57
sitebuilderLuc Pattyn3-Aug-09 10:57 
AnswerRe: byte array Pin
Fired.Fish.Gmail3-Aug-09 15:35
Fired.Fish.Gmail3-Aug-09 15:35 
Questionhow could I make double (key events) In C# ? Pin
Abdulkader Rai3-Aug-09 8:29
Abdulkader Rai3-Aug-09 8:29 
AnswerRe: how could I make double (key events) In C# ? Pin
Dave Kreskowiak3-Aug-09 8:38
mveDave Kreskowiak3-Aug-09 8:38 
QuestionHow I can create query wizard Pin
mohammad alnoed3-Aug-09 6:42
mohammad alnoed3-Aug-09 6:42 

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.