No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
10 Posted Topics
I worked on a program a few years ago that takes data from a series of text files and loads an Access database. I added to the code from a program started by someone else, so I did not write the imports and declarations. They used an ADODB.recordset, addnew and …
Hmmm... I ran your code and had no problem! I get 3.4225. Are you using a font that might not show the decimal or it is too small to see? Try putting a msgbox to test the value after the calculation: `MsgBox(height & " " & heightSquared)`
It looks like you are adding the record *before* you check the count. Move the update into an Else clause of your If...Then statement and it will only occur if the record does not exist. I think it should look like: Dim sure As String = " select * from …
You can use the Tag property of the textboxes to specify that they are to be part of the sum and then loop through the controls. I used a button, but the same thing will work by handeling the textchange. Also, I did one column, but if I used 2 …
Here is an example of a way to create a countdown timer. You should be able to use your existing timer. Public Class Form1 Dim endTime As Date Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim span As New TimeSpan(0, 300, 0) endTime = Now() …
Try this from a form event: `lblYourLable.Text = Microsoft.VisualBasic.Mid(lblYourlable.Text, 11, 2)` The lable will change to the 2 characters starting with the 11th character. Good Luck!
I am an amateur programmer that helps build some solutions for my company. I have an application that I did not originally create, but I have done a lot of modification. I think it was originally built VB 2005 and converted to VB 2010 where I have done most of …
I cannot help with specific code as I use VB.Net, not 4/5/6, but I would create an array of the Hangman word by looping through the word, using "Mid" to isolate each letter of the word and assign each letter to the array. Then I would put these individual letters …
I think you are close too. [CODE]SQLstr = "INSERT INTO Users (Username, Password) VALUES (" & txtUsername.Text & ", " & txtPassword.text & ")"[/CODE] Also, try to get the exception to appear in your message box - not just the word error.
My first program was in the mid-1970's. High school had a Wang computer. Cassette tape for storage! I was not allowed to take the only programming class offered because my math was not strong enough, but I would go into the computer lab and play. I learned to write some …
The End.