Click here to Skip to main content
15,912,756 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to load a dll at runtime Pin
leppie13-Sep-02 0:11
leppie13-Sep-02 0:11 
GeneralRe: how to load a dll at runtime Pin
fftongzhi15-Sep-02 18:36
fftongzhi15-Sep-02 18:36 
AnswerRe: how to load a dll at runtime Pin
fftongzhi12-Sep-02 23:06
fftongzhi12-Sep-02 23:06 
GeneralRunning VS .NET on NT 4.0 Pin
Zinj10-Sep-02 19:30
sussZinj10-Sep-02 19:30 
GeneralRe: Running VS .NET on NT 4.0 Pin
James T. Johnson10-Sep-02 19:33
James T. Johnson10-Sep-02 19:33 
GeneralRe: Running VS .NET on NT 4.0 Pin
leppie10-Sep-02 21:12
leppie10-Sep-02 21:12 
GeneralCryptHashMessage and C# Pin
User 988510-Sep-02 14:24
User 988510-Sep-02 14:24 
GeneralFormatting TimeSpan.ToString() Pin
Ingram Leedy10-Sep-02 11:48
Ingram Leedy10-Sep-02 11:48 
I want to format TimeSpan to output "hh:mm:ss", but when I use the generic TimeSpan.ToString() method, it returns "hh:mm:ss.ffffff". I don't need the fractions of seconds, just the plain seconds.

If I try to do something like,

textBox1.Text = span.ToString("hh:mm:ss");

I get a error,
//error - No overload for method 'ToString' takes '1' arguments.

ToString is listed as overridden but not overloaded in the TimeSpan help
docs with VS.Net.

I've tried converting to,

DateTime dt = new DateTime(span.Ticks);
labelClock.Text= dt.ToString("hh:mm:ss");

But this results with something like, "12:00:00".

Any suggestions?



GeneralRe: Formatting TimeSpan.ToString() Pin
leppie10-Sep-02 14:18
leppie10-Sep-02 14:18 
GeneralRe: Formatting TimeSpan.ToString() Pin
Paul Riley10-Sep-02 15:05
Paul Riley10-Sep-02 15:05 
GeneralRe: Formatting TimeSpan.ToString() Pin
Ingram Leedy11-Sep-02 3:13
Ingram Leedy11-Sep-02 3:13 
GeneralDragDrop reorder nodes Pin
Ryan Cromwell10-Sep-02 10:00
Ryan Cromwell10-Sep-02 10:00 
GeneralRe: DragDrop reorder nodes Pin
Stephane Rodriguez.10-Sep-02 22:32
Stephane Rodriguez.10-Sep-02 22:32 
GeneralRe: DragDrop reorder nodes Pin
Ryan Cromwell11-Sep-02 4:35
Ryan Cromwell11-Sep-02 4:35 
Generalconverting string to byte[] Pin
User 988510-Sep-02 9:17
User 988510-Sep-02 9:17 
GeneralRe: converting string to byte[] Pin
Nnamdi Onyeyiri10-Sep-02 9:31
Nnamdi Onyeyiri10-Sep-02 9:31 
GeneralRe: converting string to byte[] Pin
User 988510-Sep-02 9:33
User 988510-Sep-02 9:33 
GeneralRe: converting string to byte[] Pin
Paul Riley10-Sep-02 9:35
Paul Riley10-Sep-02 9:35 
GeneralRe: converting string to byte[] Pin
Rüpel12-Sep-02 2:16
Rüpel12-Sep-02 2:16 
GeneralRe: converting string to byte[] Pin
Paul Riley12-Sep-02 2:47
Paul Riley12-Sep-02 2:47 
GeneralRe: converting string to byte[] Pin
James T. Johnson12-Sep-02 3:04
James T. Johnson12-Sep-02 3:04 
GeneralRe: converting string to byte[] Pin
Paul Riley12-Sep-02 3:12
Paul Riley12-Sep-02 3:12 
GeneralRe: converting string to byte[] Pin
Eric Gunnerson (msft)10-Sep-02 9:45
Eric Gunnerson (msft)10-Sep-02 9:45 
GeneralRe: converting string to byte[] Pin
Paul Riley10-Sep-02 9:52
Paul Riley10-Sep-02 9:52 
GeneralRe: converting string to byte[] Pin
User 988510-Sep-02 14:22
User 988510-Sep-02 14:22 

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.