Click here to Skip to main content
15,887,027 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionVSTO (Save as Version Word 2000) Pin
krisp1-Dec-05 14:56
krisp1-Dec-05 14:56 
QuestionNested classes and dialogs Pin
LHBalloti1-Dec-05 11:11
LHBalloti1-Dec-05 11:11 
AnswerRe: Nested classes and dialogs Pin
S. Senthil Kumar2-Dec-05 21:32
S. Senthil Kumar2-Dec-05 21:32 
QuestionATL Server Web Service Pin
linuxfreak1-Dec-05 7:31
linuxfreak1-Dec-05 7:31 
QuestionFeature/Addon to get the (C#) CODE sorted? Pin
eclipse2k11-Dec-05 5:48
eclipse2k11-Dec-05 5:48 
QuestionDevelop COM add-ins for Outlook 2003 with Outlook 2002 Pin
cathignol1-Dec-05 1:47
cathignol1-Dec-05 1:47 
QuestionQuick .NET CF Question Pin
garbeechio29-Nov-05 12:03
garbeechio29-Nov-05 12:03 
QuestionSmartphone development - no milliseconds? Pin
Radoslav Bielik28-Nov-05 10:48
Radoslav Bielik28-Nov-05 10:48 
Hi everyone,

So I thought to myself today that I should try to develop my first Smartphone app, just for fun. I have had an Orange SPV C500 for about 6 months now, and I really missed a stopwatch application (I wanted something simple and easy to use, without all the graphic stuff all other stopwatch apps seems to have).

I have downloaded and installed Smartphone 2003 SDK, so now I'm able to target Smartphone 2003 based devices in my Visual Studio 2003. I have created my simple stopwatch application, and quickly ran into the first issue.

Once I start the stopwatch, I save the DateTime.Now into a StartTime variable, and then I update the display every 100 milliseconds. To update the display, I calculate TimeSpan ts=DateTime.Now.Subtract(this.StartTime) and then use String.Format to output the value.

The issue: The Milliseconds property of TimeSpan is always zero!

Does this mean that the .NET Compact Framework doesn't support milliseconds when working with DateTime/TimeSpan? Or am I doing something wrong? When I use the same code in a Windows Forms application, it works fine (including the milliseconds). But the behavior is the same (no milliseconds) in smartphone emulator as well as in the real device (SPV C500). Even the DateTime.Ticks seems to always advance by 1 second.

Anyone got any ideas? Frown | :(

Rado

PS: Are there any good communities/forums dedicated to smartphone development? I mean, there is of course the CodeProject for generic C#/C++ development, or www.asp.net for ASP.NET, but I couldn't find anything like that for smartphones.


Radoslav Bielik
www.neomyz.com/poll [^] - Get your own web poll
www.neomyz.com/rss [^] - RSS Web Reader - latest news for your site
www.neomyz.com/games [^] - Add a small game to your website

AnswerRe: Smartphone development - no milliseconds? Pin
Dave Kreskowiak30-Nov-05 5:15
mveDave Kreskowiak30-Nov-05 5:15 
GeneralRe: Smartphone development - no milliseconds? Pin
Radoslav Bielik30-Nov-05 6:09
Radoslav Bielik30-Nov-05 6:09 
GeneralRe: Smartphone development - no milliseconds? Pin
Dave Kreskowiak30-Nov-05 10:45
mveDave Kreskowiak30-Nov-05 10:45 
QuestionBest performance for connectionless communication Pin
User 12301628-Nov-05 10:32
User 12301628-Nov-05 10:32 
AnswerRe: Best performance for connectionless communication Pin
Ray Cassick1-Dec-05 11:51
Ray Cassick1-Dec-05 11:51 
GeneralRe: Best performance for connectionless communication Pin
User 1230165-Dec-05 5:39
User 1230165-Dec-05 5:39 
GeneralRe: Best performance for connectionless communication Pin
Dan Neely5-Dec-05 7:50
Dan Neely5-Dec-05 7:50 
GeneralRe: Best performance for connectionless communication Pin
User 1230165-Dec-05 21:12
User 1230165-Dec-05 21:12 
QuestionLoading DLL's from Network Pin
slanted28-Nov-05 2:03
slanted28-Nov-05 2:03 
AnswerRe: Loading DLL's from Network Pin
tarasn19-Dec-05 22:51
tarasn19-Dec-05 22:51 
QuestionHow do I recognize filechanges/fileadds in a dir/subdir .... Pin
MaWeRic27-Nov-05 22:54
MaWeRic27-Nov-05 22:54 
AnswerRe: How do I recognize filechanges/fileadds in a dir/subdir .... Pin
enjoycrack28-Nov-05 12:56
enjoycrack28-Nov-05 12:56 
Questionhow to edit FAT table? Pin
Veelone27-Nov-05 22:43
Veelone27-Nov-05 22:43 
AnswerRe: how to edit FAT table? Pin
Dave Kreskowiak28-Nov-05 5:14
mveDave Kreskowiak28-Nov-05 5:14 
Question.net 2.0 Pin
gadgallea27-Nov-05 22:01
gadgallea27-Nov-05 22:01 
AnswerRe: .net 2.0 Pin
André Ziegler27-Nov-05 23:03
André Ziegler27-Nov-05 23:03 
GeneralRe: .net 2.0 Pin
ricardojb30-Nov-05 10:52
ricardojb30-Nov-05 10:52 

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.