VS 2008 Functions At Set Times
Apr 17, 2009I 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..
View 2 RepliesI 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..
View 2 RepliesWhat I am trying to do is have a class where the functions of the same name are both instance functions and shared functions.
Public Shared Function Get...(byval xx as xx)
and
Public Function Get...
The Public Function uses a Property xx created in the constructor, whereas the Shared Function has the parameters (byval xx as xx).
I'm building an application that will need to run a specific functions at user defined times I need help with setting up the schedule part of the app. What I would ideally like to do is be able to set up an "event" which will occur at a specific time and date or at a specific time on specific days such as 9:00 Monday's Tuesday's Wednesday's and Saturday's.
View 2 RepliesI 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
[Code].....
1) Is it possible to access the Excel mathematical functions without actually opening Excel?
I was thinking of through a DLL WinAPI call or maybe a delegate function or smaller program?
2) Does anyone know of a MS link or area that gives instruction on "how to" use every function of every Windows DLL at all?
Or for all those that Microsoft have chosen to document online at least.
I have just started using vb.net and I have a checked list box with times throughout the day shown as
00:00 - 00:14
00:15 - 00:29
00:30 - 00:44
00:45 - 00:59
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'm wondering how I would go about retrieving all the times between Two Times. I have 4 Textboxes.
1: Hour 1
2: Minute 1
Between
3: Hour 2
4: Minute 2
E.g if I have a list of times:
15:34
16:12
18:08
09:17
10:26
21:05
21:35
21:45
21:50
22:18
23:10
My
Dim Time1 As String
Dim Time2 As String
Time1 = (txt1H.Text & ":" & txt1M.Text)
Time2 = (txt2H.Text & ":" & txt2M.Text)
[Code] .....
How Would I Go About retrieving All The Times Between Say "21:20" & "22:30".
How do I tell if the current time is between two other times? ie. is it currently between 8:00 AM & 4:00 PM.
View 9 RepliesI 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
[Code]...
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.?
View 4 RepliesPrivate Type IP_ADDRESS_STRING IPadrString As String * 16 End Type
i want to set the value of IpadrString to times 16 how can i do that in vb.net without using type
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.
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.
View 3 RepliesI 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
[code].....
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.
View 4 RepliesThis 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.
[Code]...
how to get the time difference between 2 date & times Where
from_time falls >= 22:00 of the From_date & the to_time falls <= 06 of the To_Date
for example:
From_Date = 01/01/2011 20:00 ' Where Work Started
To_Date = 02/01/2011 08:00 'Where Work Ended
Time_Covered_Between_22TO06_As_Night = 22:00 to 06:00 is 08:00 hrs How to equate it?
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.
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
[Code]...
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
View 1 RepliesI used to develop applications in VBA, but now I'm using SQL Server 2008 Integration Services for a lot of the functionality, and using VB.NET as the scripting language where needed - all of which are new to me. I need to do the same string manipulation in several different SSIS tasks. With VBA, I'd simply write a function and declare it Public, and I could use it from any module. E.g.
Public Function MakeId(ByVal Country As String, ByVal Postcode As String) As String
....
End Function
' later...
Dim MyId as String
MyId = MakeId(County, Postcode)
But when I do that in a Script Task or Script Component, I find I can't call the function from VB in any other Script Task or Component; it says MakeId is undeclared. It works within its own 'box', but not from anywhere else.
Ok lemme tell ya this is one toughie to explain. Basicly, I have a textbox with digital times on different lines, i.e
22:25
23:56
21:33
[code].....
I am using Visual Studio 2008 to try and create a calculator program that can convert binary to decimal. I have some code but I'm having problems figuring out what to write as an "argument" when I was to call the function.
Here is the code I have so far.
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
[Code]....
I am trying to pass multiple signature calls to an overloaded function. My understanding is that VB can recognize the different signatures and use the appropriate function.[code]...
View 2 Replieshow to use Right and Left Functions in VB.NET 2008?
View 1 RepliesI was curious if anyone has heard of writing a program with functions only. It is part of my current assignment but all the examples I have seen all over have at least subs for the click events. SO I am a little confused to say the least.
View 3 RepliesIs it possible to have a button do one action the first time it is clicked and a different action the next time it is clicked?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Button1.Hide()
Button2.Show()
[code]....
I'm taking a class in VB, so I have numerous projects. I have a lot of useful functions and code, and I'd like for them to all be included in on piece of code that all my projects can use. The problem with DLLs is that when I build, the EXE needs the DLL to be in the same folder. I want a standalone EXE file. Is there any way I can have a DLL in a different folder than the EXE and still use it? Or is there some better solution to having useful code somewhere so when I update that code, it will affect all of my projects?
View 2 RepliesI have this script that reads the accelerometer on my m200 tablet pc but I don't know how to use it in a windows form, how to import or declare it it would be nice.
The .cs script is
using System;
using System.Runtime.InteropServices;
class Accel
[Code].....