Click here to Skip to main content
15,887,083 members
Home / Discussions / C#
   

C#

 
AnswerRe: How can I use System.IO to do these 3 things Pin
Xmen Real 3-Aug-09 16:49
professional Xmen Real 3-Aug-09 16:49 
AnswerRe: How can I use System.IO to do these 3 things Pin
dan!sh 3-Aug-09 17:48
professional dan!sh 3-Aug-09 17:48 
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 
ResizeStart will only fire when the user starts to drag the edges (or you use the keyboard "shortcut" of alt+space, s, and arrow keys) and ResizeEnd fires when the user lets go.

How to determine whether it was a shake or not, I would judge if the average velocity was, um...
If the user was moving it one way then the other then...no, ehh
On reflection it might be wiser to simply check if the window is within, say, 20 pixels of it's start location.

ResizeStart: note the position, start the timer.
ResizeEnd: stop the timer, compare the position, execute the function.


Edit.
In fact, just ignore this.
It's late, I've been coding for several hours. I failed to notice that resize != move.

I'll just get my coat and leave...


Ninja (the Nerd)

Confused? You will be...

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 
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 

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.