Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding a total column to datagrid control Pin
Muammar©18-Aug-07 20:24
Muammar©18-Aug-07 20:24 
GeneralRe: Adding a total column to datagrid control Pin
Not Active19-Aug-07 4:57
mentorNot Active19-Aug-07 4:57 
AnswerRe: Adding a total column to datagrid control Pin
Urs Enzler19-Aug-07 0:53
Urs Enzler19-Aug-07 0:53 
Question(System.NotSupportedException: No devices of the category ) error in running sample code of directx,capture class library Pin
kapiltheripper18-Aug-07 8:42
kapiltheripper18-Aug-07 8:42 
QuestionHow do I Encrypt Connection String Password in C# Windows Application Pin
Hadi638418-Aug-07 8:25
Hadi638418-Aug-07 8:25 
AnswerRe: How do I Encrypt Connection String Password in C# Windows Application Pin
karle18-Aug-07 9:04
karle18-Aug-07 9:04 
QuestionNative docking in Winforms MDI app? Pin
Ravi Bhavnani18-Aug-07 7:27
professionalRavi Bhavnani18-Aug-07 7:27 
AnswerRe: Native docking in Winforms MDI app? Pin
martin_hughes19-Aug-07 4:07
martin_hughes19-Aug-07 4:07 
AnswerRe: Native docking in Winforms MDI app? Pin
Mathew Jibin5-Sep-10 1:57
Mathew Jibin5-Sep-10 1:57 
QuestionDescription popup box Pin
ddabble18-Aug-07 5:52
ddabble18-Aug-07 5:52 
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 

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.