Click here to Skip to main content
16,004,977 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to sort ListView items of some column. Pin
rahvyn627-Mar-07 9:54
rahvyn627-Mar-07 9:54 
QuestionSource ThreadException Pin
AAKAra27-Mar-07 8:06
AAKAra27-Mar-07 8:06 
Question2 Questions Pin
JMOdom27-Mar-07 7:35
JMOdom27-Mar-07 7:35 
AnswerRe: 2 Questions Pin
led mike27-Mar-07 7:48
led mike27-Mar-07 7:48 
AnswerRe: 2 Questions Pin
Leslie Sanford27-Mar-07 7:55
Leslie Sanford27-Mar-07 7:55 
GeneralRe: 2 Questions Pin
JMOdom27-Mar-07 11:02
JMOdom27-Mar-07 11:02 
GeneralRe: 2 Questions Pin
Leslie Sanford27-Mar-07 11:14
Leslie Sanford27-Mar-07 11:14 
AnswerRe: 2 Questions Pin
Rudolf Jan28-Mar-07 0:10
Rudolf Jan28-Mar-07 0:10 
On the fifth line you declare Seed two lines later you declare the property Speed with the same name. It is a dangerous habit to use speed and Speed in the same module. For properties I normally create a private var like this PropSpeed, then the property itself has the more friendly name Speed.

I think your model is nog good. If you intend to use Speed as the actual seepd an you simulate braking, just decrease the speed again, till it treaches 0. You do not need the brake proerty for this purpose. It might make sens to introcuce properties for accelleration to set the accelleration capability and use this to calculate the new speed:
speed += accelleration;

In the same way you may want to use a different value for brakng capacitiy, e.g. brake:

speed -= brake;

I hope this helps.
GeneralRe: 2 Questions Pin
JMOdom28-Mar-07 13:27
JMOdom28-Mar-07 13:27 
QuestionSystem.Diagnostics.Process.StartInfo Username= "default user"? Pin
Austin Harris27-Mar-07 6:59
Austin Harris27-Mar-07 6:59 
AnswerRe: System.Diagnostics.Process.StartInfo Username= "default user"? Pin
kubben27-Mar-07 7:57
kubben27-Mar-07 7:57 
GeneralRe: System.Diagnostics.Process.StartInfo Username= "default user"? Pin
Austin Harris27-Mar-07 8:48
Austin Harris27-Mar-07 8:48 
GeneralRe: System.Diagnostics.Process.StartInfo Username= "default user"? Pin
kubben27-Mar-07 9:19
kubben27-Mar-07 9:19 
QuestionAuto generated number Pin
Neo_Shehpar27-Mar-07 6:44
Neo_Shehpar27-Mar-07 6:44 
AnswerRe: Auto generated number Pin
Leslie Sanford27-Mar-07 7:23
Leslie Sanford27-Mar-07 7:23 
GeneralRe: Auto generated number Pin
Christian Graus27-Mar-07 7:26
protectorChristian Graus27-Mar-07 7:26 
AnswerRe: Auto generated number Pin
Christian Graus27-Mar-07 7:24
protectorChristian Graus27-Mar-07 7:24 
AnswerRe: Auto generated number Pin
Austin Harris27-Mar-07 7:27
Austin Harris27-Mar-07 7:27 
AnswerRe: Auto generated number Pin
kubben27-Mar-07 7:42
kubben27-Mar-07 7:42 
GeneralRe: Auto generated number Pin
Austin Harris27-Mar-07 8:52
Austin Harris27-Mar-07 8:52 
GeneralRe: Auto generated number Pin
kubben27-Mar-07 9:13
kubben27-Mar-07 9:13 
AnswerRe: Auto generated number Pin
Neo_Shehpar29-Mar-07 11:02
Neo_Shehpar29-Mar-07 11:02 
Questionhow to get logged in user name Pin
Nkuttynasi27-Mar-07 6:40
Nkuttynasi27-Mar-07 6:40 
AnswerRe: how to get logged in user name Pin
Not Active27-Mar-07 6:46
mentorNot Active27-Mar-07 6:46 
QuestionTranspose - Converting columns to rows Pin
BanarasiBhaiya27-Mar-07 6:33
BanarasiBhaiya27-Mar-07 6:33 

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.