I would like to have a code for an image slide show. Images should be displayed for a give time, e.g. 5 sec. "Thred.Sleep()" seems not working for this purpose. What is the best way ?
View Complete Post
Need help in for each loop. i'm poor in for each loop. i wanna create a for each loop that can give me 2 value in each rows.
i create a for loop.. but is a mulitple rows. Anyone can help ?
here is my code.
Dim x As Integer, y As Double, x1 As Integer
Dim d As Date, prevD As Date
Dim d1 As TimeSpan
temp_sec = ac.getTempTime(ddl_date.SelectedValue, ddl_id.SelectedValue)
For I As Int32 = 0 To temp_sec.Tables(0).Rows.Count - 1
If I Mod 1 = 0 Then
' To prevent list out of bounds
If I + 1 < temp_sec.Tables(0).Rows.Count Then
d = temp_sec.Tables(0).Rows(I).Item(0)
prevD = temp_sec.Tables(0).Rows(I + 1).Item(0)
d1 = prevD - d
x = d1.TotalSeconds
x = x1 + x
y = temp_sec.Tables(0).Rows(I).Item(1)
x1 = x
I've got a simple table with an ID, a NAME and an ARCHIVE booleen.
I want to write piece of code that goes through each record and...
If ARCHIVE is false and a folder hasn't been created for it, it will create it and go to the next record.
If ARCHIVE is false and a folder has been created for it, it will do nothing and go to the next record.
If ARCHIVE is true the whole folder will be moved to another folder and go to the next record.
When all records have been checked, the code will end.
I was thinking of using a SQL count to find out how many records there were and making a loop that starts at record one. runs the folder checking/creating/archiving code then +1 until the loop ends but I couldn't work out how to assign the query results to an integer...
I'm not asking for anyone to write the code. I think I probably already know 80% of the theory behind doing this I just can't glue it all together. I know you can do the folder stuff with the System.IO Directory Class...
Anyway, all input is welcome. Cheers guys!
So the situation is, i have a list, that receives emails from a particular account all day long, recently it has started recieving emails "late" being it will mass process emails at various times of the day. Before it proccessed them as soon as
they were received.
Event log shows
A critical error occurred while processing the incoming e-mail file C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml. The error was: The process cannot access the file 'C:\Inetpub\mailroot\Drop\e472144001cb44a40000001e.eml' because it is being used
by another process..
Have this error everywhere.
It seems SMTP is having issues but wanted to come here and get some insight.
-I havent changed anythign recently except new cable runs to the switch
-There is no mail in the (Drop, Mailbox,Pickup, Queue) folders
-mail setup settings are
-incoming is set to "Advanced" , no, server.domain.com
Outgoing is my exange server.
Hi. I am having a really hard time with this code trying to loop through a datareader, and then enter the data into another table. The logic is that I get 2 columns path and document_no from an Oracle Database. I then need to check if the file in the path column is a valid path. If it is not valid, it should be inserted into a SQL Server 2005 database. My code is below, can anyone help? I'm getting a headache from it. If any further info is needed just let me know. Thanks.
Do While oraReader.Read()
path1 = oraReader("Path")
docno = oraReader("Document_No")
If (System.IO.File.Exists(path1)) Then
sqlCmd = New SqlCommand("INSERT INTO CHECKLINKS1 (DOCUMENT_NO) VALUES (@doc)", conn)