What do you believe is the best way to have the program find the same row it created for a "Punch-In" for a single user. To clear this up what I have is a data table with the columns: Employee Num, Date, TimeIn, Timeout, Lunchout, Lunchin. And what I want it to do is when you first punch in, create a row for the specific user, then find that row later on and continue filling out what they do next. (make sense?) I don't have a ton of the sql + vb experience and I am having trouble figuring out a way to do this.
I am trying to create an alarm clock. What the problem is, is that when I then the program where the default file is using wmp.URL="SomeWhere\In\A\Music Folder\song.mp3" I get this error: An error occurred creating the form. See Exception.InnerException for details. The error is: Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. When I that line of code it runs, but when the alarm goes off there is no sound. And having a alarm clock go off with no sound is not going to get one up. I do have wmp com control on the form.
I am currently creating a clock like the "24" clock, i have made the numbers using the drawing tools within Visual Basic, i was just wondering how i can link the current time to corrospond with the shapes i have drawn?
i am creating an alarm clock application which requires user input to switch off the alarm. I have 3 comboBoxes on the form named day month year. when the user enters the correct date ( Current date) and click the button the alarm is deactivated. the code to check that the date entered in the comboBoxes is the current date.
I'm a totally newb to VB and I want to do this. I want to do display system clock into a textbox. The trick is that I want it to be synchronized with the Windows XP clock. I want to have something like +/- 100 ms accuracy.
Each 'second' change will trigger an output pin to ground into the parallel port. This is very important that the 'second' change in the same time the Windows XP second change. Do not care about the parallel output thing, I'm nearly there. My main concern is the synchronisation with Windows clock.
In my code, I've added a counter that increment +1 at each 'second' change. So, when the 'n' value will reach a determined value, it will trigger another event.
[Code]...
I searched on the net and I found a thing about NIST time server.. Maybe this could be an otpion, but I have even no idea about how using it... I'm a total newb, but I'm ready to learn. So, please use simple language, no hard to understand acronym etc.
im new to the forums and vb. I decided to make a alarm clock and the basic functions work great. But I want to add a button that allows you to set the time you want to snooze till. The button stops the alarm but doesnt set it off. Basically it just does what my stop alarm button does well heres the code. P.S. The last button (button 3) is the snooze button
I am trying to make a time difference calculator using the Datetimepicker, (code as below)But I would if it is posible like to show it as the 24 clock system, anybody able to help or point me in the right direction?
I have created a simple app to display a digital clock, it can create child windows (dialog boxes) to do various chores, one of those chores involves a lengthy background task, so I create it in a modeless manner, so it doesn't block the main program. It all works well... kind of took me awhile to figure it all out, but there is one little cosmetic issue.
I require the Login button on the User app to be enabled at a certain time during the day, and the Admin will specify the time. How do I go about achieving this? I have a database as wellDo I save the time in the Database that the Admin enters, and then retrieve the time from the database when the User app is running and compare the clock time on the User app to the time from the database (I will retrieve the time when the User app starts)
I am having some trouble drawing a circle that is constant when the program runs. right now I am able to create one of my clock hands (that is going counterclockwise), but I can't figure out how to draw the circle of the clock, any suggestions? [Code]
I am trying to get clock in and out times to go in one worksheet. When I coded the two buttons they created two different worksheets. What can I do to place the times together?
Public Class Form1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Label1.Text = TimeOfDay End Sub
I'd like to write a small app to get the time from an "atomic" clock -- I believe the UTC time and then compare this against the system clock.
So far I've been able to get the system time details with the code below but just cannot figure out where to start on getting the atomic clock(s) time.
I did Google this for examples and have not found anything useful, I did find a list of atomic time servers @ the following URL and realise I have to connect to NIST Internet Time Service clock
Dim localDirect As Date = Date.Now Dim utcDirect As Date = Date.UtcNow Dim localFromUtc As Date = utcDirect.ToLocalTime()
I had a Line drawn from design view, and a circle also drawn in design view. Now like a clock, I want the Line to follow around the circle, this will be mostly a timer, or something. So far i have
Public Class Form1 Public myRadians As Decimal Public myDegrees As Decimal Public ychange As Decimal
[code]....
but its so messed up, the lines dont follow, they go everywhere...
I am new to VB coding so I'm trying some easy projects.I figured an alarm clock would be a good place to start. But I'm Having a hard time with the MP3 Part of it all.I want a pre-selected MP3 to start, when my timer2 is = to the time of day.But i Have never really used MP3's in any project. So dose anyone know how i would go about.
I'm writing a logging program that should log some values each 10 seconds, but I want these 10 seconds to be in sync with system clock e.g 8:32:00, 8:32:10, 8:32:20 e.t.c. One way to achieve this would be to use a timer with quite small interval like 0.2 seconds and do logging if the right time has come, but maybe there is a better way?
I would like to make an alarm clock application, however I am having some problems in the brainstorming phase.
My main problem is the fact that I dont know how to ensure the application will be able to calculate the time and thus set off the alarm. For example, when the application is closed, how will the alarm go off?
Ideally I would like to make this app a system startup item, so if the system is rebooted, the application will automatically relaunch - but again, I dont know how to do that.
If the system is sleeping, how can I wake it up? These kind of problems.
Another dilema I have, is if this application is always running, how could I have it go to my taskbar hidden icon menu (the right section of the taskbar next to the time).
I'm making an alarm clock whose form's backColor should change randomlly every 5 seconds. I am not sure as to how to do this. I'm using a timer so after the alarm clock's given time matches the current time, a song will be played. But I do not know how to count the seconds, or milliseconds that pass after starting time.