VB 2008 Console - 2D Array - Infinite Loop - Program - User Enters The Number Of Enrollments For 5 Different Campuses During Two Semesters

Jun 12, 2011

I am trying to create a program that the user enters the number of enrollments for 5 different campuses during two semesters. I just got started and here is what I have so far but when I run the program it is stuck in an infinite loop and will not go to the next function. I am not sure how to end the loop.

Here is what I have so far:
Module Module1
Dim SIZE As Integer = 5
Dim campus() As String = {"Decatur Day", "Decatur Evening", "Huntsville Day", "Huntsville

[CODE]....

View 1 Replies


ADVERTISEMENT

VB 2008 - Console Beginner 2D Array (Infinite Loop)

Aug 2, 2011

I am trying to create a program that the user enters the number of enrollments for 5 different campuses during two semesters. I just got started and here is what I have so far but when I run the program it is stuck in an infinite loop and will not go to the next function. I am not sure how to end the loop. Here is what I have so far:

Module Module1
Dim SIZE As Integer = 5
Dim campus() As String = {"Decatur Day", "Decatur Evening", "Huntsville Day", "Huntsville Evening", "Distance Learning"}
Dim semester() As String = {"Fall 2010 semester", "Spring 2011 semester"}
[Code] .....

View 10 Replies

Create Console Program Where User Enters A Character And Respective ASCII Value In Denary

Nov 21, 2010

The latest assignment from my teacher was to create a console program where the user enters a character and the respective ASCII value in Denary, Hexadecimal and Binary, Even Parity, Odd Parity and Hamming code is returned.I've managed to implement all of them except the latter with relative ease, I am familiar with the concept of Hamming code and can compute it easily by hand, but don't really know how to implement it as a function in my program. [code]

View 1 Replies

Program - Requests A High Number And A Low Number From User - Searches Array And Finds All Elements Within Two Numbers

Jan 24, 2010

I need to write a program that requests a high number and a low number from the user, then the program searches the array and finds all elements within the two numbers. The program is used to search for past presidents, so if I type 43 for low number and 44 for high number, the program will display:

George Walker Bush
Barack Hussein Obama

I think I have an idea of how to search up to a certain point, but not to stop at a certain point....Here is the code that I have for that particular sub procedure:

Quote:

Private Sub btnDisplayRqst_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplayRqst.Click
Dim sr As IO.StreamReader = IO.File.OpenText("PRESIDENTS.TXT")

[CODE]...

View 4 Replies

Get The LIKE Statement To Work If The User Enters A Number?

Sep 22, 2010

how I can get the LIKE statement to work if the user enters a number like 403* ? The sql works if I do not enter an *

strWildCardFound = InStr(TNSearchTextBox.Text,
"*")
TNSearchTextBox.Text = Replace(TNSearchTextBox.Text,

[Code].....

View 2 Replies

Count The Number Of Times When A User Enters A Character?

May 20, 2009

count the number of times when a user enters a character followed by , and I want to count , number of times. So far here is what I have if you also know a little about the split function can you check to see if what I have is right?

Private Sub Strat0_LostFocus()
Dim q1 As New rdoQuery
Dim LO As Integer

[code]....

View 6 Replies

VS 2010 User Enters Number And Adds That Many Numbers And Totals

Apr 29, 2012

I am wanting to allow a user to enter a number and depending on what number is entered, it will allow that many entries. For example, if 5 is entered, the user has to enter 5 numbers. Those 5 numbers will then be added together.I 6 is entered, 6 total numbers will be added.I was trying to do this with a for next loop but I wasn't getting anywhere.

View 5 Replies

Populating A Date Time Picker When A User Enters An ID Number Into A Textbox

Jan 25, 2012

I am using a vb windows application I need to allow a user to enter their ID num in a text box and it need to automatically populate their date of birth

View 6 Replies

User Enters A Password - Must Be At Least 3 Characters Long - At Least 1 Number And 1 Alphabet Character

Mar 28, 2012

My homework assignment is to create a project where a user enters a password that must be at least 3 characters long with at least 1 number and 1 alphabet character. After that the password has to be encrypted so that vowels become X, numbers Z, and it reverses. For example, a password of CS2301 would be ZZZZSC. There's supposed to be Loops to extract 1 number/letter at a time and search for them in the string to validate, and I don't know what to do. The form itself has a Text Box to enter a password and a label to display the new one, and a Go button.

This is what my code looks like so far.

Option Strict On
Option Explicit On

Public Class Form1

[CODE]...

View 13 Replies

VS 2008 - How To Run Infinite Loop In Background

Dec 30, 2010

I am making a program thats going to be an msn style popup for reminders. I made an infinite loop to activate the popup when the date = current date. However its stuck in the loop and I cant run other functions while the loop is running. How can I get the alert to go off while also running the program?

Public Class Form1
Structure List
Dim Name As String
Dim Day As Date
Dim Hour As String
Dim Min As String
[Code] .....

View 4 Replies

VS 2008 AfterUpdate Without The Infinite Loop

Feb 11, 2011

While building out an interface for patient/client lookup, we have a pull from out FoxPro EMR creating the patient table and populating the lookup on the EU interface.

[Code]...

View 2 Replies

VS 2008 Infinite Loop In Separate Thread?

Jun 25, 2010

Im working with and trying to run an infinite loop on a new thread which at some point takes action (e.g. make changes to Viewport3D). But no matter what I use:

- BeginInvoke

- Background Worker

- Timer

I run into problems. My porblems are:

[Code]....

I am doing all this in WPF.

How can I run the loop in the background and get it to affect the Viewport3D controls content without throwing an error or freezing up the application? A Viewpoirt3D is a control in WPF.

View 5 Replies

VS 2008 - Code Error On Tax Calculating Program - User Enters The Item Name And Amount Of The Item Purchased

Feb 9, 2010

So i've to write this program whose purpose it this:

Purpose: The user enters the item name and amount of the item purchased. The program calculates the tax for the item and the final total, and then displays these values. Tax on all items will be 7.75%.

And so far i've this code but it's not working:

' Program: Cash Register
' Author: Nidhi Shah
' Date: February 2, 2010
' Purpose: The Cash Register Window application will
' computer the tax and the final cost of a
' purchased item.

Option Strict On

Public Class frmCashRegister
' Tax per item - used in multiple procedures
Const _cdecTaxPerItem As Decimal = 0.0775D

[CODE]...

View 6 Replies

User Enters A Username In Textbox1 And Then Enters A Password In Textbox2?

Jul 2, 2009

I have a login form that I made. The user enters a username in textbox1 and then enters a password in textbox2. The user then hits the submit button (button2) and from there it works beautifully. The problem is, I would also like the user to be able to hit the "enter" key after they fill out the password textbox (textbox2) and have it be like they pressed the submit button. When the user hits enter right now, the form hides.

View 4 Replies

VS 2008 Internet Browser Shortcut With Infinite Loop

May 12, 2009

So I'm getting annoyed with this ffriend of min that keeps on asking for code off me for a VB assignemnt. Now I'd like to give him some code, but not the right code, (play a joke on him...he...he..). So thats the reason I'd like to write a infinite loop program for Internet Explorer. Would such Visual Basic program be possible?

I'm not going to write anything epic, but probably just the event handler to a button that keeps uploading internet explorer on a infinite loop after clicking. I know morally, this is wrong. I would rather be an ass than a lazy bastard.

View 11 Replies

Confirm What User Enters In The Program?

May 2, 2012

Well, I have a form called customers. Login form and mainform.

So my clients want to have an option that explains this: If a user enters information in the customer form, then that information has to be confirmed by admins panel.

Get me well. When application program loads with a limited user, I set some buttons hidden so that only admin can see it when they log in. so in that case, users are not capable of inserting anything in the customer form.

But this time they want users to insert information then the information goes to administrators to confirm the information...if admins accepts the information, then information is then goes to customers table in database. If they don't confirm it, then that information will be ignored.

am using vb.net 2008 with sql server database.

View 7 Replies

VS 2008 How To Round Infinite Number

May 26, 2010

I am trying to round a number but I keep getting an Infinity number. How do I round this.

4000 / 7135 * 100 Here's the code I've tried.

Round(readVals(0) / Scaling1 * 100 + ActualValueLow1, 2)

FormatNumber(readVals(0) / Scaling1 * 100 + ActualValueLow1, 2)

View 12 Replies

VS 2008 - Infinite Loop - Event Triggered Keeps Firing Off The Code

May 9, 2010

I'm not even sure what I need to know. None the less lets say I got a timer with an if event to check if said event is triggered then it fires off some code. The problem is if said event is triggered it keeps firing off the code and I only need to do it one time. Whilst letting the timer keep checking if event happened. I hope I worded that right and here is a rough translation in code. [Code] Is there a way to keep checking if an event happened and only fire off the code one time?

View 1 Replies

Make A Simple Program That When For Eg A User Enters 4 It Gives This Figure ****?

Mar 1, 2009

i was wondering how i can make a simple program that when for eg a user enters 4 it gives this figure **** and so i want that if the user enters 5 it gives ***** etc.

View 9 Replies

Program Asks That The User Enters Valid Data?

Jun 27, 2011

I am trying to write the code for a conference:

1 person costs $695.00
2-4 people costs $545
5-8 people costs $480
8 or more costs $395

If the company has been before they get a 15% discount and no company can have more than 16 people. The program asks that the user enters valid data.?? (error msg boxes)

View 33 Replies

Program Where The User Enters 3 Inputs In A 3 Textboxes - First Name, Last Name, Birthday

Dec 7, 2009

Ok so i made a program where the user enters 3 inputs in a 3 textboxes (First Name, Last Name, Bday) and when the person presses enter a check list is made under the checklistbox with the Lastname. So can any1 tell me if i click on that checklist then everything i entered shows up in a label.

View 11 Replies

Vb 2008 - Converting A Character That The User Enters In A Textbox To Binary

May 11, 2009

I want help emergency for a project i have, I have to make a program to do hamming codes, since now i have done the part for converting a character that the user enters in a textbox to binary.This binary now is displayed in a textbox. So now i want to save this binary to an array

e.g i have this binary 10101110

CODE:

and so on .. how can i do it?

View 14 Replies

VS 2008 Add A Message Box Or Alert To A MaskTextbox If The User Enters No Numbers?

Mar 21, 2011

I have a MaskedTextbox which takes Us Phone numbers. Using The MaskedTextBox ensures the user can enter only numbers and the number gets formatted right.

Here is the problem I am having: How do I add an error message if the box is left empty? I am not trying to validate the number, just need a way to add: "You forgot to enter a number." Can I add this to a MaskedTextBox?

How do I add a message box or alert to a MaskTextbox if the user hit submit without entering numbers?

View 7 Replies

.NET Console Program For Perfect Number?

Sep 23, 2010

I need a vb.net console program to check whether a number is perfect or not.

View 2 Replies

Either End The Program Or Start The Program Over In A Visual Basic Console Application - Based Upon User Input?

Apr 8, 2012

I have a procedure at the end of my console application that ask the user to either hit enter to end the program, or type s to perform another search. The issue I'm having is no matter what the user types in the program end. What I would like to happen is if the user types s, then the program starts over and lets the user perform another search. The program is procedural and I need to find a way to start back off at the top of the program which ask the user to type a name to search.

[Code]....

View 1 Replies

How To Make Infinite Loop

Jul 12, 2009

1) Diff b/w nothing & string in terms of variable declaration.

2)Erase keyword.I have never heard of such keyword in mine whole 1 + yrs of exp.

3) Diff b/w functions & properties? I say,Functions return a value,But propertiesare used to set or get the values. He say properties also return a value.

4)How can we use a class as a datasource?

5)Partial Class? hey frnds above question is for C++ na.Or there is also such class in VB.Net.

6)When the error stack overflow comes?

7) How we can we make indefinite loop , without uusing any variable declaration.

View 4 Replies

Infinite Loop - TCP Freezing With .NET?

Aug 12, 2009

I made a game in VB .Net that uses tcp and sends messages back and forth.What is happening is, every so often, the message cannot be sent quickly enough, so then the TCPObj.connect() method goes into a loop, until it reaches the timeout and then spits out an error. Most of the time though, it never gets to the error, my application just freezes, and then comes back after TCPObj.connect() succeeds. How can I make the connect() method do application.doevents while it's trying to connect? Basically, I dont want it to freeze up my whole application. Since tcp.connect() is a .NET method, I can't go in and add application.doevents.

View 3 Replies

Write An Infinite For Loop?

Feb 24, 2009

Is it possible to write an infinite for loop in VB.NET?

View 3 Replies

Check VB, Console Application, User Input To Make Sure They Entered A Valid Number?

Feb 2, 2012

Vb is not my language of choice , but I have to do this for school and I'm not having a very easy time with VB's documentation.I'm just creating a very simple console application that accepts user input: degrees in Celsius, and converts it into Fahrenheit. I want to make sure that if the user just hits enter without entering the degrees in Celsius, then an if else statement will catch and write to enter Celsius again.Here's what I've tried:

[Code]...

View 1 Replies

[2008] Error Validation - Series Of Nested If/then/else Statements To Make Sure A User Enters Information

Feb 15, 2009

I'm using a series of nested if/then/else statements to make sure a user enters information into each text box or chooses a radio button. What would i use to say if no text is entered in textbox1, then ... also what would i use to make a sure the user choose one or the other radio button? for example i also have a combo box, i used "If SubjectComboBox.SelectedIndex <> -1" for the if statement.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved