No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
I need to load the contents of a text file (itemInfo.txt) into a list box, I am on the wrong track, can someone please help. [code=VB] Public Class MainForm Private path As String = "L:\Visual Basic\SequentialHW\" Private Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load itemListBox.Items.Clear() itemListBox.Items.Add(path … | |
I need to sort three numbers that are entered in three different textboxes and display these numbers ascending and when I press a different button display them descending. Now I think that I need to put these three numbers into an array, sort and display, but I'm not really too … | |
I need to add student name and grade to a file. This is my section of code so far [code=VB] Private Sub addStudentNameGrade_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addStudentNameGrade.Click Dim swrStreamWriter As IO.StreamWriter swrStreamWriter = IO.File.AppendText(path & "studentgrade.txt") swrStreamWriter.WriteLine(Me.textStudent.Text, " ", Me.textGrade.Text) 'swrStreamWriter.WriteLine(Me.textGrade.Text) swrStreamWriter.Close() End Sub [/code] … | |
I always have a problem with this. I get an error when trying to build the program "argument exception unhandled". Any help would be appreciated, thanks. [code=VB] Private Sub addBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addBtn.Click Dim newLineIndex As Integer = 0 If My.Computer.FileSystem.FileExists(path & "stocks.txt") Then … | |
I'm having problems with if statements present value (PV) should be no larger than $10000 interest rate is not higher than 10 and no less than 2 and number of years at least 3 I've tried the if statements with error messageboxs but I was getting confused with all the … | |
What is the syntax to display the contents of a simple text file to a listbox? | |
I am very stuck. I need to write a prog that uses arrays and receives the length and the width of a multiroom building and find the area needed for for the carpet or wood flooring. This is just the first part and thisis as far as I am able … | |
I need to average the numbers in the array and display and also detemine the letter grade and display. I've managed to average the numbers but I am unable to display the lettergrade, (won't compile) I think it has to do with "Average Grade" being a constant string This is … | |
This program is supposed to prompt for a price until (do while loop) the input box is blank and then average the numbers and display the average. I've got most of it down except the average part, how do I store the numbers the professor hasn't showed us arrays yet. … | |
Upon checking the corresponding check box, which is either Ladies Shoes, Men Shoes, Sneakers or Sandals, the program needs fill the listbox with the checkbox information. Can't figure the syntax, any help would be greatly appreciated. [code=VB] Public Class Form1 Private Sub chkboxLadiesShoes_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) … | |
I need to FICA and Federal Tax % to a weekly paycheck calculator. I think I have everything in the program that needs to but, I think I might have a line in the wrong spot or in the wrong order. Any help would be greatly appreciated. Thank you. [code=VB] … | |
I'm having a problem with my for loops. The program is supposed to get a number from the user and when button is pressed add 1 and skip a line until the tenth number is reached. I fell like I almost have it but I'm missing something. Please help. [code=VB] … | |
I am a beginner with VB, I'm coming from C++. When I compile and test the program the base pay textbox changes to 0, gross pay textbox to 0 and the total deductions turns to 0.25. For the life of me I can't figure out why. My little experience with … | |
I have time to complete this, I have to add 2 void functions, 2 value returning functions, 1 structure and on array. I just need some ideas on where to start, what should I convert to functions, how should I instill stuctures and arrays to this particular program. I'm going … | |
I am a C++ beginner and I am stuck. I can't get the random number generators to run properly, specifically the random number generators are all coming up with 1 . The point system is not running properly either, I'm sure it has something to do with my do-while loop. … |
The End.