Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: Pop-Up & AxBrowser Pin
Sergio Luix28-Apr-05 19:15
Sergio Luix28-Apr-05 19:15 
GeneralRe: Pop-Up & AxBrowser Pin
leppie28-Apr-05 19:25
leppie28-Apr-05 19:25 
GeneralRe: Pop-Up & AxBrowser Pin
Moon Boy28-Apr-05 19:31
Moon Boy28-Apr-05 19:31 
GeneralRe: Pop-Up & AxBrowser Pin
Moon Boy28-Apr-05 19:46
Moon Boy28-Apr-05 19:46 
GeneralGeneral object destruction question: Pin
tantiboh28-Apr-05 13:32
tantiboh28-Apr-05 13:32 
GeneralRe: General object destruction question: Pin
Marc Clifton28-Apr-05 15:38
mvaMarc Clifton28-Apr-05 15:38 
QuestionGetting a timer's remaining time? Pin
tantiboh28-Apr-05 12:38
tantiboh28-Apr-05 12:38 
AnswerRe: Getting a timer's remaining time? Pin
Marc Clifton28-Apr-05 15:51
mvaMarc Clifton28-Apr-05 15:51 
tantiboh wrote:
How can I get (or calculate an estimate for) the amount of time remaining on the timer?

Here's an idea: derive your own timer that hooks the Elapsed event. Whenever the timer fires, do an intervalStartTicks=DateTime.Ticks or something.

Have a method in your derived class called "RemainingTime", or something like that, that gives you Interval - DateTime.Ticks - intervalStartTicks, doing the appropriate unit conversions.

You might also want to provide your own Start method that sets the intervalStartTicks as well.

Marc

MyXaml
Advanced Unit Testing
YAPO
GeneralCreating object instances by their name Pin
Anonymous28-Apr-05 12:08
Anonymous28-Apr-05 12:08 
GeneralRe: Creating object instances by their name Pin
Andy Brummer28-Apr-05 12:29
sitebuilderAndy Brummer28-Apr-05 12:29 
QuestionHow do you program with the GAC? Pin
kmaclean28-Apr-05 11:55
kmaclean28-Apr-05 11:55 
AnswerRe: How do you program with the GAC? Pin
Marc Clifton28-Apr-05 16:00
mvaMarc Clifton28-Apr-05 16:00 
GeneralRe: How do you program with the GAC? Pin
kmaclean29-Apr-05 3:19
kmaclean29-Apr-05 3:19 
AnswerRe: How do you program with the GAC? SOLUTION FOUND!!! Pin
kmaclean29-Apr-05 9:58
kmaclean29-Apr-05 9:58 
GeneralProblem with Remoting Pin
Ewing Morales28-Apr-05 11:52
Ewing Morales28-Apr-05 11:52 
GeneralRe: Problem with Remoting Pin
Fernando Soto28-Apr-05 13:21
Fernando Soto28-Apr-05 13:21 
Generalselect with where clause in Sqlserver2000 Pin
cishi_us28-Apr-05 11:43
cishi_us28-Apr-05 11:43 
GeneralRe: select with where clause in Sqlserver2000 Pin
Marc Clifton28-Apr-05 15:43
mvaMarc Clifton28-Apr-05 15:43 
GeneralAccessing a row of data Pin
brian5528-Apr-05 11:20
brian5528-Apr-05 11:20 
GeneralRe: Accessing a row of data Pin
brian5528-Apr-05 15:41
brian5528-Apr-05 15:41 
QuestionHow do u see content of a namespace?? Pin
Poikilos28-Apr-05 11:05
Poikilos28-Apr-05 11:05 
AnswerRe: How do u see content of a namespace?? Pin
Tom Larsen28-Apr-05 11:20
Tom Larsen28-Apr-05 11:20 
AnswerRe: How do u see content of a namespace?? Pin
Marc Clifton28-Apr-05 11:28
mvaMarc Clifton28-Apr-05 11:28 
GeneralReconnecting to a remote server using DCOM Pin
bob2k_0328-Apr-05 10:27
bob2k_0328-Apr-05 10:27 
GeneralRe: Reconnecting to a remote server using DCOM Pin
Maxim Alekseykin29-Apr-05 2:47
Maxim Alekseykin29-Apr-05 2:47 

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.