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

C#

 
AnswerRe: Description popup box Pin
martin_hughes18-Aug-07 5:55
martin_hughes18-Aug-07 5:55 
AnswerRe: Description popup box Pin
Muammar©18-Aug-07 9:36
Muammar©18-Aug-07 9:36 
GeneralRe: Description popup box Pin
Paul Conrad18-Aug-07 10:16
professionalPaul Conrad18-Aug-07 10:16 
QuestionGamserver Query Library Pin
wannabeuk18-Aug-07 3:37
wannabeuk18-Aug-07 3:37 
Questiondisplay the machine time in a textbox Pin
costavo18-Aug-07 3:01
costavo18-Aug-07 3:01 
AnswerRe: display the machine time in a textbox Pin
N a r e s h P a t e l18-Aug-07 3:19
N a r e s h P a t e l18-Aug-07 3:19 
GeneralRe: display the machine time in a textbox Pin
yoaz18-Aug-07 9:14
yoaz18-Aug-07 9:14 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 9:42
Muammar©18-Aug-07 9:42 
And use the conditional operator ?: to format it like a real clockSmile | :)

int Hours = ((YourTimeVariable / 1000) / 3600);
int Minutes = ((YourTimeVariable / 1000) / 60) - (Hours * 60);
int Seconds = ((((YourTimeVariable / 1000)) - (Minutes * 60)) - (Hours * 3600));

strHours = Hours < 10 ? "0" + Hours.ToString() : Hours.ToString();
strMinutes = Minutes < 10 ? "0" + Minutes.ToString() : Minutes.ToString();
strSeconds = Seconds < 10 ? "0" + Seconds.ToString() : Seconds.ToString();

Time_TextBox.Text = strHours + ":" + strMinutes + ":" + strSeconds;



Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)

GeneralRe: display the machine time in a textbox Pin
Luc Pattyn18-Aug-07 10:20
sitebuilderLuc Pattyn18-Aug-07 10:20 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 20:14
Muammar©18-Aug-07 20:14 
GeneralRe: display the machine time in a textbox Pin
Not Active18-Aug-07 10:22
mentorNot Active18-Aug-07 10:22 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 20:12
Muammar©18-Aug-07 20:12 
GeneralRe: display the machine time in a textbox Pin
Muammar©18-Aug-07 20:19
Muammar©18-Aug-07 20:19 
GeneralRe: display the machine time in a textbox Pin
yoaz21-Aug-07 9:31
yoaz21-Aug-07 9:31 
QuestionPrevent DataGridView to move to next row after edit? Pin
Dragan Matic18-Aug-07 0:25
Dragan Matic18-Aug-07 0:25 
AnswerRe: Prevent DataGridView to move to next row after edit? Pin
Muammar©18-Aug-07 9:46
Muammar©18-Aug-07 9:46 
GeneralRe: Prevent DataGridView to move to next row after edit? Pin
Dragan Matic19-Aug-07 0:31
Dragan Matic19-Aug-07 0:31 
Question'using' vs fully qualified types Pin
Malcolm Smart18-Aug-07 0:22
Malcolm Smart18-Aug-07 0:22 
AnswerRe: 'using' vs fully qualified types Pin
Christian Graus18-Aug-07 0:52
protectorChristian Graus18-Aug-07 0:52 
GeneralRe: 'using' vs fully qualified types Pin
Malcolm Smart18-Aug-07 0:54
Malcolm Smart18-Aug-07 0:54 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 10:22
mvePIEBALDconsult18-Aug-07 10:22 
GeneralRe: 'using' vs fully qualified types Pin
Christian Graus18-Aug-07 11:25
protectorChristian Graus18-Aug-07 11:25 
GeneralRe: 'using' vs fully qualified types Pin
PIEBALDconsult18-Aug-07 11:35
mvePIEBALDconsult18-Aug-07 11:35 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:26
Colin Angus Mackay18-Aug-07 13:26 
GeneralRe: 'using' vs fully qualified types Pin
Colin Angus Mackay18-Aug-07 13:29
Colin Angus Mackay18-Aug-07 13: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.