Click here to Skip to main content
15,927,921 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Want to inherit one property to another Pin
Brad^2-Nov-07 11:21
Brad^2-Nov-07 11:21 
QuestionWeb Service in VB.Net created XML doc Pin
kendo172-Nov-07 9:58
kendo172-Nov-07 9:58 
QuestionHelp with an CR report... Pin
CCG32-Nov-07 9:48
CCG32-Nov-07 9:48 
QuestionHelp on Submit Form via Email Pin
cyepes272-Nov-07 9:30
cyepes272-Nov-07 9:30 
AnswerRe: Help on Submit Form via Email Pin
Christian Graus2-Nov-07 21:05
protectorChristian Graus2-Nov-07 21:05 
Questionhow to send an xml file wrapped in a cookie to other website using httpwebrequest? Pin
dreddy72-Nov-07 6:35
dreddy72-Nov-07 6:35 
QuestionIs strongly typed database code worth it? It's giving me a headache! Pin
MattPenner2-Nov-07 6:25
MattPenner2-Nov-07 6:25 
QuestionWork in Emulator, not work on Device Pin
Hurricane30002-Nov-07 6:25
Hurricane30002-Nov-07 6:25 
Hi to all,



I'm writing a code (in VB .net Compact Framework environment) to read a text file (where is included a field containing a DateTime in Ole Automation format i.e.: 39097.4010995 is equivalent to 1/15/07 9:37:34 AM ).
Before to adding the part of code relative to above work,the program (in fase of development yet), was working almost perfectly in both emulator (windows mobile 2003 SE) and the real device.
After I added the following code lines (only that relatives to DateTime elaboration):

----------------------------------------------------

Dim Tempi() As Single
Dim DatOra As DateTime
Dim Tempo As TimeSpan
Dim Tempo1 As DateTime
Dim Tempo2 As DateTime


Tempi = New Single(TotRecords) {}


DatOra = DateTime.FromOADate(Microsoft.VisualBasic.Mid(line, D1, D2))

If CountLines = 7 Then
Tempo1 = DatOra : Tempo2 = DatOra

Else
Tempo1 = Tempo2 : Tempo2 = DatOra
Tempo = Tempo2 - Tempo1
End If

Tempi(CountLines - 7) = Tempo.TotalSeconds

-------------------------------------------------------

the program is perfectly working only on emulator, but on real device, return me this error:

ArgumentException
Impossible to show an error message. It is not been found assembly of the optional resource that contain it.

in System.DateTime.DoubleDateToTicks()
in System.Windows.Forms.Form.WnProc()
in System.Windows.Forms.Control._InternalWnProc()
in Microsoft.AGL.Forms.EVL.EnterMainLoop()


My device is Windows mobile 2003 SE based, updated to Version 2.00 of Compact framework, and is Italian language Culture.

To develop code, I'm using English version of VS 2005 and Compact Framework environment.

Any idea on where is the problem?
May be that problem depends on different languages (I am not sure)? If yes can someone help me please?

Marco








AnswerRe: Work in Emulator, not work on Device Pin
Hurricane30003-Nov-07 8:30
Hurricane30003-Nov-07 8:30 
QuestionXP Visual Style and Themes on windows forms Pin
Julius++2-Nov-07 3:27
Julius++2-Nov-07 3:27 
AnswerRe: XP Visual Style and Themes on windows forms Pin
nishkarsh_k2-Nov-07 6:43
nishkarsh_k2-Nov-07 6:43 
Questionprinting a bit thinner line... [modified] Pin
BooleanTrue2-Nov-07 3:03
professionalBooleanTrue2-Nov-07 3:03 
AnswerRe: printing a bit thinner line... Pin
BrokenS2-Nov-07 11:41
BrokenS2-Nov-07 11:41 
GeneralRe: printing a bit thinner line... Pin
BooleanTrue2-Nov-07 13:22
professionalBooleanTrue2-Nov-07 13:22 
GeneralRe: printing a bit thinner line... Pin
Luc Pattyn2-Nov-07 14:20
sitebuilderLuc Pattyn2-Nov-07 14:20 
QuestionOracle Connection fires error as: Database logon failed Pin
Venkatesh Mookkan2-Nov-07 1:40
Venkatesh Mookkan2-Nov-07 1:40 
Questiondatatable to arraylist(avoid duplicate records binding)..., Pin
Member 38798812-Nov-07 0:19
Member 38798812-Nov-07 0:19 
GeneralSecurity code for your registration or login pages pages Pin
Mohammad Mahdi Ramezanpour2-Nov-07 0:09
Mohammad Mahdi Ramezanpour2-Nov-07 0:09 
GeneralRe: Security code for your registration or login pages pages Pin
Dave Kreskowiak28-Nov-07 17:00
mveDave Kreskowiak28-Nov-07 17:00 
QuestionMS WORD Pin
alwinSCH2-Nov-07 0:06
alwinSCH2-Nov-07 0:06 
QuestionRegarding parallel port interfacing and inpout32.dll Pin
Pulkit joshi1-Nov-07 23:20
Pulkit joshi1-Nov-07 23:20 
AnswerRe: Regarding parallel port interfacing and inpout32.dll Pin
Christian Graus2-Nov-07 1:10
protectorChristian Graus2-Nov-07 1:10 
QuestionMerging DataSet = NullRefException ? [modified] Pin
galadrian1-Nov-07 22:20
galadrian1-Nov-07 22:20 
QuestionCall Stack in VB6 Pin
Nitin19811-Nov-07 20:54
Nitin19811-Nov-07 20:54 
AnswerRe: Call Stack in VB6 Pin
Dave Kreskowiak2-Nov-07 2:00
mveDave Kreskowiak2-Nov-07 2:00 

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.