Can you make a "LongTimeString" tick backwords using VB . NET 2003

Private Sub Timer1_......
Textbox1.Text = Now.ToLongTimeString
"????????Hummm Tick Backwords"??????"
End Sub
End Class

See what you come up with and post a code sample, I think it mght work if
you can Dim TextBox1 as something and use something like IF LongTimeString
= > +1 then TextBox1.Text = -1
I dont know I can't fig it out, can you?

Re: Is this impossible ? by Bob

Bob
Mon Dec 15 04:27:03 CST 2003

You can use a DateTime structure and then add negative time to it such as
myDateTime.AddSeconds(-1)

--
Bob Powell [MVP]
C#, System.Drawing

The November edition of Well Formed is now available.
Learn how to create Shell Extensions in managed code.
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

"Ken" <Bad@mail.com> wrote in message
news:uIOQK7swDHA.556@TK2MSFTNGP11.phx.gbl...
> Can you make a "LongTimeString" tick backwords using VB . NET 2003
>
> Private Sub Timer1_......
> Textbox1.Text = Now.ToLongTimeString
> "????????Hummm Tick Backwords"??????"
> End Sub
> End Class
>
> See what you come up with and post a code sample, I think it mght work if
> you can Dim TextBox1 as something and use something like IF
LongTimeString
> = > +1 then TextBox1.Text = -1
> I dont know I can't fig it out, can you?
>
>
>
>
>



Re: Is this impossible ? by hirf-spam-me-here

hirf-spam-me-here
Mon Dec 15 06:12:26 CST 2003

* "Ken" <Bad@mail.com> scripsit:
> Can you make a "LongTimeString" tick backwords using VB . NET 2003
>
> Private Sub Timer1_......
> Textbox1.Text = Now.ToLongTimeString
> "????????Hummm Tick Backwords"??????"
> End Sub
> End Class
>
> See what you come up with and post a code sample, I think it mght work if
> you can Dim TextBox1 as something and use something like IF LongTimeString
> = > +1 then TextBox1.Text = -1
> I dont know I can't fig it out, can you?

'Now' will return a 'DateTime'. Have a look at its methods, you can
add/subtract time. Then call the 'ToLongTimeString' method.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>