im struggling a bit and was wondering if anyone can help. Im looking to compair 2 sets of datess and times, for examp2 textbox1 27/02/1980 23:00 and text box 2 having the real time date and time. But instead off having years days hours mins and seconds i want to display how many seconds has passed between the two date and times. Can anyone show me how this is done as i have no clue where to start.
Having problems with a datatable which consists of multiple datalogger information. Within the datetime field there are as the name suggests listed date and times entry i.e. 12/01/11 22:56:56 ect ect.
Problem is i am graphing this and when ms chart reads the duplicate entries as a series. It doesnt like it and comes up with a slightly odd interpretation. I need to get the duplicate entries out to establish a single time series.
I was proposing to clone the original datatable and run a loop to remove the duplicates. I have been trying to do this for days and have played with a whole load of examples, without success. Can anyone point me in the right direction on this.
I am creating a booking system, I have got it all working so that a user can select a date and a time and book, there are no restrictions so 100 people could book the same date and time.
My lecturer suggested to me that to make it so that just one person can book one time on one day the user will select a date and then the page will re-load with the times selector only showing the times which are available on this date.
I have done some tutorial work similar to this, however a little more basic showing the available slots using an except operation for example allavailableslots except bookedslots, but there was no restriction on dates, so it would just show all the times which havent been booked yet full stop. I think I will use an if statement but I am not too sure, dont really know where to start...
I have to display the available times in a dropdownlist called "DDL_avalTime" based on the date selected in a ASP calendar.
How the program works is that when a User clicks a date form the caldendar, it checks the SQL database. In this case the table that I'm retrieving it from is "trainerbookings" from the column "trainingDateTime". The data type for this column is datetime.[code]...
I created a background thread that constantly scans a specified folder for any .xls files that are created or modified. These files come from a vba macro in outlook that will automatically save the attachments of the mails in the this folder. This will update the modified date/time, or at least it seems to.
For Each fi In aryFi fidate = System.IO.File.GetLastWriteTime(path & fi.ToString) fidate1 = System.IO.File.GetCreationTime(path & fi.ToString)
[code]....
Everytime I check to the code, the fidate and fidate1 variables are indeed the correct dates/times of the file it's currently checking. It almost never gets inside the elseif block at runtime though.
I want to enlarge an image, possibly up to 32 times or 64 times bigger than original dimensions (so that the user can see each pixel) if possible. The following is a simple function that I have to enlarge an image.
Private Function xEnlarge(ByVal Source As Image, ByVal Rate As Double, Optional ByVal Quality As Drawing2D.InterpolationMode = Drawing2D.InterpolationMode.HighQualityBicubic) As Image
What I am trying to find is a way to get the current time and find which list item it fits into. What I think I need to do is to first of all get the current time and then go through the list splitting each item into 2 times and seeing if the current time fits. For example: Split the item 00:00 - 00:14 to 00:00 and 00:14 and then check if the current time is more than 00:00:00 but less than 00:14:59 and if so do certain task.how to go about taking each list item and splitting it into 2 separate times so I can check between them?
I have a countdown timer, I want to make a sound every two minutes at the moment i've got it set to if timer.txt = "00:08:00" minutes then play the sound but it stutters..
I am trying to write an app which allows the user to input two times , in a maskedtextbox, and take those two times and add them together then output the result to a third maskedtestbox, I havent seen anything else on the web with the same problem, only with fixed date or time, nothing that the user can change.
I am guessing you have to input the a maskedtextbox as a string then parse them to datetime, add the two together and the convert the date back to a string at runtime my code always bails out with a datetime conversion
How would i go about getting my application to run 2 times then show form 2 then once they close form2 it dosent show form 2 anymore once the program starts again after closing.?
I have about 1.000 text files in a folder, and I wanto to make some statistics reading the files content.In the first place I store the files path + name in a MyFiles() array, then, when I press a "Start" button I read the several files:
For x As Integer = 0 To MyFiles.Length - 1 FileReader = My.Computer.FileSystem.ReadAllText(MyFiles(x)) (data processing) (data processing) next
then I have copied and pasted the first 500 files in a new folder and added to the code if x > 500 the stop The strange thing is this: to elaborate the 500 files of the second folder takes about 4 seconds, to elaborate the first 500 files of the first folder (THAT ARE IDENTICAL TO THE 500 FILES OF THE SECOND FOLDER) takes 7 seconds.The same identical code takes different times to elaborate the same identical files if they are stored in different folders with different files number.
I have a button where I get data from a database that matches a search string I enter. Everything works fine the first time the button is clicked. However, if I click it again with a different search string, I get the same results as the original search string. I've tried to dispose, clear, and reset my dataset before I load the data each time, but it still finds the original query. This is the code I use to get and request the data:
Private Sub btnCfind_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCfind.Click mdbFile = "TCICUST.DBF" mdbCond = " WHERE COMPANY LIKE '" & cbCust.Text & "%' ORDER BY COMPANY " GetDB() [Code] .....
I watched a youtube video that showing me how to make multiselect work and it worked but its just one problem: It opens two times.
Public Class Form1 Private Sub HScrollBar1_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles HScrollBar1.Scroll
i am having a bit of trouble getting a string to print a specific number of times. I am writing a do...loop or a For...next statement where it prints a string ("*") times the counter on the do...loop/for...next but can't quite get it to work.
This is the current code. Rather than put in this 100 times for each number, What would be a better way? Have had a go myself but can't get it to work.
Bit stuck on this one, have seen alot about how to do it just cant seem to get it right. I want to have 2 text boxes with times in them.. at the moment i have them on click events then it just runs a Now for the time and fills the boxes from the system time. But then i want the 3rd box to find the elapsed time from the 2 times in the previous boxes but i just cant seem to figure it out
Bit stuck on this one, have seen alot about how to do it just cant seem to get it right.I want to have 2 text boxes with times in them.. at the moment i have them on click events then it just runs a Now for the time and fills the boxes from the system time.But then i want the 3rd box to find the elapsed time from the 2 times in the previous boxes but i just cant seem to figure it out
how can i make it like IF (todays date is passed a specific date) then basically what i need is to see if the date is passed a static date i set in the vb code.
Im trying to change specific lines of text in a listview at certain times of the day. Heres what im using atm , but im not sure how to change the text in the listview.
If Now.Month = 2 And Now.Day > 6 Then ListView1.Items(0) = ("My text here !!") End If
I know something like this exists, I juts don't know the right word to search about it, so basically I have a cosole application and if it runs twice it crashes. I wanna dispay a message: Sorry app alerady running.I can look at processes and see if my exe is there already running but that's much harder.
I need a textbox where you can add a number and if you press a button that it will repeat the function of the button the number of times as in the textbox.