Indicate The Lowest Datetime?
Nov 17, 2010is there something that can be called to indicate the lowest datetime possible?
View 3 Repliesis there something that can be called to indicate the lowest datetime possible?
View 3 Replieshow to convert string to datetime and calculate date
View 3 RepliesI'm trying to match a certain DateTime value with the current system DateTime. I have a timer and a label on a form. Timer interval is set to 1000. When the form loads, the timer starts ticking. As soon as the current DateTime matches the value of the variable, it shows a message in the label. When I'm writing the following code, the values don't match even if the current system DateTime is equal to the variable. Label1 isn't showing 'Times Matched':[code]The default format of 'Now' is the same as I have stored in dtmVar variable. So there's no question of format mismatch. Does that mean 'Now' is not actually a DateTime property? Provided, my O.S. is Windows Vista Ultimate and all date/time settings are set to default.
View 1 RepliesI'm trying to match a certain DateTime value with the current system DateTime. I have a timer and a label on a form. Timer interval is set to 1000. When the form loads, the timer starts ticking. As soon as the current DateTime matches the value of the variable, it shows a message in the label.
When I'm writing the following code, the values don't match even if the current system DateTime is equal to the variable. Label1 isn't showing 'Times Matched':
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim dtmNow As DateTime
[Code]....
Why is it so? The default format of 'Now' is the same as I have stored in dtmVar variable. So there's no question of format mismatch. Does that mean 'Now' is not actually a DateTime property? Provided, my O.S. is Windows Vista Ultimate and all date/time settings are set to default.
datetime1 and datetime2now two fields are have data ( date )in table recordi want to update only datetime2 is an emptyi am using visual basic 2010 ( visual studio 2010
View 1 RepliesI am in a visual basics 2008 class for my MIS degree. This is the beginners class. We were instructed to build a program that calculates a score average. However, we get extra credit if we figure out how to drop the lowest test score. I do not know how to do this. The teacher won't help with the extra credit. I will post my code.
[Code]...
Get lowest number from different TextBoxes?[code]...
Now im looking to get the lowest number in one of the ".checked" TextBoxes and add that number to a new Array.
I'm trying to save an image with the lowest possible quality. The lowest I got with a few colors was using the SaveJPGWithCompressionSetting the file size was 43kb.What im trying to achieve is something like remote desktop, the client constantly takes images for the current desktop then send its via TCP to the server(because I cant figure out any other way to get desktop stream). Everything works great but If I want to be more Real-time the image quality needs to be lowered. I can create 43-50kb desktop snapshot of a 1600x900 resolution,
View 6 RepliesFor this assignment, the user has to enter 10 number and my msgbox will show the number of negative number aswell as the lowest number.here's what i,ve come up with
Quote:
Dim innombre As Integer
Dim innbrnegatif As Integer
Dim inpetit As Integer
[code]....
how to find the lowest value and obviously i'm not able to show the number of negativ number.
Dim innombre As Integer
Dim innbrnegatif As Integer
Dim inpetit As Integer
[code]....
I was able to make the program work for the smallest number but it doesn't show the number of negative number.2nd edit: i changed the innombre to innbrnegatif+1 in the nbrnegatif = innbrnombre+1 and now it seems to be working.
I have a table named tbluser with fields code and name. I want to check the lowest unused number in code. For example table below:
code name
60688 jane
60689 dina
[Code]....
i have also one textboxt what is the first, second and third number to search
ex.
if
text1.text=6
therefore first number is 6 second and third is 06 and the result should be
60601 since in the code the lowest unused code is 60601.
I have a datagridview and has two columns(UserName and Age), what want to do is to get the UserName that has lowest Age.
View 2 RepliesI have a DropDownList control and I want to set the SelectedValue to the lowest value in the dropdownlist greater than 0 for example my control drpExample has the following values:[code]I want to use drpExample.SelectedValue = The lowest value greater than 0..The SelectedValue should then be 0.90..Is there a simple way to do this?
View 3 RepliesCan I do this to find the lowest value in an array greater than zero?
Dim findLowest() As Integer = {right, left, backRight, backLeft}
Dim theMove As Integer = findLowest.Min > 0
Can't seem to find it on MSDN.
Me.Bottom: is this get the X coordinate in the lowest x of the screen I only ask this because when i use me.bottom it returns 822 when my screen resolution is only 800 and my form height is only 750. Also when i use this function in different class it returns 300 when me forms is 750 Well i just want to know the code which get the height of my screen not including xp toolbar
View 6 RepliesDim MyVal As Integer
Dim MyVal2 As Integer
MyVal = Val(TextBox4.Text)
[code]......
How do you convert a fraction to the lowest available fraction. If you type in 500/1000, the program will automaticly convert to 1/2. Is there any mathematical way to do this?
View 11 RepliesI have an application that runs using as AsInvoker manifest, this uses ProcessStartInfo to run another application that is using a HighestAvailable manifest (in my case this runs as Admin and I get the UAC prompt) the first app then quits. The second app then uses ProcessStartInfo to run the first app again, this time it runs as admin (no UAC prompt) I guess this is correct because it is AsInvoker and it is being invoke from an application that is running as admin, but I actually want it to run without Admin rights - or more correctly run it with the lowest possible execution level..I know you can use ProcessStartInfo.Verb = "runas" to elevate but can you descend?
View 2 Replieslabel10 displays which is the highest number
label12 displays which is the lowest number
label14 displays which is the number that is duplicated
My codes don't run 100% correct.:'(
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label6.Text = Val(TextBox1.Text)
Label7.Text = Val(TextBox2.Text)
Label8.Text = Val(TextBox3.Text)
[Code] .....
i have a structure array how can i sort the array from highest bid to lowest?
Structure mystructure
Public name As String
Public bid As integer
[code]....
I try to compare Datetime.Now with a Datetime variable I set, using the Datetime.CompareTo() method. I use a timer to compare these every second and display the result, but as the current time approaches the time I set, the result changes from 1 to -1, but never 0, which means these two are never equal. I'm suspecting the Datetime structure contains milliseconds?
View 7 RepliesAssume the following program is started at 1:59:01 AM on 3/13/2011 in the United States. The first time Timer1 ticks what will be the value of the TimeSpan (ts)?
Public Class Form1
Private Sub Timer1_Tick(sender As System.Object, _
e As System.EventArgs) Handles Timer1.Tick
[code].....
I'm trying to add the date and time of Today into a Sql-database-field that has the datetype datetime.
[Code]...
the msgbox gives me the following result: 29/01/2011 18:49:21 my sqlException gives me the following error: 102 - Incorrect syntax near '18'. Is it better that i set the datatype to char in my sql database? It's maybe a bit easier? When I do that, can I calculate with these date?
I am taking a VB2008 class and I have the entire program figured out except for one thing. I've checked our text I've scoured the internet and I've tried tons of things.
What this section of code does is access a data file, calculate the average from it... done.. that works, calculates the highest number in it... done that works... and calculate the lowest number from the file... nope... not working. I've tried tons of things and what i have in there now keeps giving me an output of 0, when it should be a 2.
Private Sub btnCalc_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalc.Click
'Calculates average, minimum, and maximum temperatures from data file
Dim month As String
[Code]....
The application I'm doing requires me to "enter the size of an array in a TEXTBOX, then click a button, a list of random number would show up, then re-arrange from Lowest to Highest".For ex, i enter "5" in the TextBox, then an array or list of 5 random number will show up vertically on the ListBox. I already got this part done. Now the thing is, I have to make a For...Next statement to rearrange them from Lowest to Highest.
View 4 RepliesPublic Scores(19) As Decimal
Now This Array is populated with decimal values and i just want to get the index values of the highest and lowest scores.i.e. if the [[scores(3) = 90]] and [[scores(7) = 90]] are equal and highest scores, i want 3 and 7 as integers in return..and same for the lowest scores..I retrieved data from a text file and stored it in Classes.. now i want to relate the above Array and these Classes..
Dim Student1 As New Student
There are total 20 of these classes.. Student2.vName, Student3,vName.. etc etc
Student1.vName = SplitterArray(0)
Student1.vID = SplitterArray(1)
Student1.Score1 = SplitterArray(2)
[code]....
For example, After i get the highest score indexes from scores(19) array i would like to get the name of the related person from Student*.vName Class (If i get 3 and 7 index i the related names would be Student4.vName and Student7.vName consequently)?
How can I find a listbox average removing the 2 lowest number? I tried
DimintSmall
AsInteger
intSmall = lstGrades.Items.Item(0)
ForEachItem
AsIntegerInlstGrades.Items
IfItem < intSmall
Then
intSmall = Item
EndIf
Next
lstGrades.SelectedItem = intSmall
I cant select or remove it
I'd like to know how to sort an array that has entries with numbers after text.
I have a list of four entries:
Book 1
Book 2
Book 11
Book 12
Using Array.Sort(aBooks) returns
Book 1
Book 11
Book 12
Book 2
Is there a way to have it sort lowest to highest like 1 2 11 12 instead of 1 11 12 2?
I am new to using VB2010 (and coding in general). Also brand new to these forums . Okay so I am making a program that: allows the user enter the number of customers served for each of 12 months into an array. The application should calculate and display the following statistics: total number of customers for the year, the average monthly number of customers, and the months with the highest and lowest numbers of customers. Use inputBox to get user input. Do not accept non-numeric or negative numbers.
The problem that I am having is that I do not know how to display which was the best and worst month. I imagine I need something that targets the highest/lowest number and finds the text in the corresponding index but I'm not sure how to do this.
How to sort numbers from lowest to highest in my datagrid table?
View 1 RepliesHow to sort numbers from lowest to highest in my datagrid table?
View 3 Replies