Designing A Windows Based Computer Program That Will Allow A User To Enter Some Number (n)?

Dec 10, 2010

I need designing a Windows based computer program that will allow a user to enter some number (n) and a choice of a count up or count down for that many numbers. So for example, the user enters 5 as their number and selects the count down option, the message box displayed would contain the message: "Here are your numbers: 5,4,3,2,1,0"

View 7 Replies


ADVERTISEMENT

Program That Allows The User To Enter A Month And A Number Of Years?

Jun 10, 2011

program that allows the user to enter a month and a number of years. (e.g March and 10 years) The program then displays all the months of the year from the entered month in a loop that runs as many times as the number of years.(e.g March April May.....December January February March....)

View 1 Replies

Create A Program Which Promps The User To Enter An Unlimited Number Of Test Scores

Jul 7, 2011

Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:

View 3 Replies

Array (parallel) - Allow User To Enter A Score And The Program Returns A Grade Based On The Score Entered

Apr 14, 2012

Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......

[Code]...

View 1 Replies

Carver-parallel (range Code) - Allow User To Enter A Score And The Program Returns A Grade Based On The Score Entered

Apr 14, 2012

Haveing troubles with an assignment. I am writting code that will allow user to enter a score and the program returns a grade based on the score entered. I can get it to work using "IF" statements but want to use code for ranges. My "IF" code is as follows.......

[Code]....

View 2 Replies

Process Of Designing A Computer Control Program To Control A HF Communications Receiver?

Jul 11, 2008

I am in the process of designing a computer control program to control a HF communications receiver (radio), and have found a problem with the Serial port. I am using VB Express Edition 2008. This module of the program is supposed to take an input string from another part of the program, format it, break it into 4 bytes, and send it to the radio in hex form via COM port 1. The problem comes in when you try to enter a frequency with an 8 or a 9 in it. The 8 or 9 is usually replaced by 45, ex.-input 9900, receiver tune 4545. The exact same thing happens with 8's, input 8800 and receiver tune 4545. All other numbers other than 8 or 9 work fine. The strange part of it is that sometimes the 8's and 9's work, and work correctly. For instance, 900, 1900, 2900, 3900, 4900, 5900, 6900, and 7900 all work correctly. This led me to believe that is may only be when the 8 or 9 is in the first position, but that is not the case, it also shows up in other positions as well. All other frequencies that do not have 8 or 9 in them also work. I ran into this same problem with VB Express 2005, and worked on it for weeks before giving up and going back to VB6.0. This same module (with exception of the port open command) runs flawlessly under VB6. I have even tried importing the MSCOMM control from VB6, but it gives the same results. In de-bugging mode, all of the inputs, decimal and hex seem to be correct, so the problem must come in after you click the command button, but before it leaves the COM port.

[Code]...

View 19 Replies

Prompt The User To Enter The Beginning Number And The Ending Number

Oct 4, 2009

I am supposed to create a program in my VB.net class to do the following:

1. Prompt the user to enter the beginning number and the ending number.

2. Find the sum of the even numbers between these two values, inclusive.

[Code]...

We are currently using for next statements in the class. I know how to prompt for and utilize the numbers that are input etc. My problem is the EVEN numbers part. I obviously have to determine if the number is even and then use a step value of 2 from there. But not sure how to determine if number is even or odd (guessing to use mod, but totally lost).

View 8 Replies

Prompt The User To Enter The Beginning Number And The Ending Number?

Mar 2, 2011

I am wounder if anyone might have a web site or no where I can find the information so I understand how to prompt the user to enter the beginning number and the ending number. And then to find the sum of the even number. Now does anyone know what a name convention is ? I have tried to look it up on the forums but cant find nothing on it.

View 9 Replies

Lock The Computer Screen Until User Enter The Correct Password

Jan 22, 2010

i want to make a program which lock the computer screen until user enter the correct Password what will i have to make this application and how i can do this

View 14 Replies

VS 2008 - Calling Sub When User Press Enter On Textbox (Computer Beeps)

Nov 10, 2011

I may be doing this wrong but I want to call a sub when the user presses enter on a textbox. The sub then shows a window in dialog mode. When I close that window, the computer makes a ding sound. Why is that? Is there a better way for detecting enter being presses on a textbox and not getting that ding?

If e.KeyChar = vbCr Then
LookupItem()
End If

View 3 Replies

User Must Enter A Number Between 1 And 100?

Sep 26, 2009

How do I make it that the user must enter a number between 1 and 100? And If they dont they get an OK messagebox stating that they must do.I imagine it'll be something like this:

If TextBox1.Text = "" Then
MessageBox.Show("You must enter a value between 1 and 100", "Name Entry Error", _
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
End If

But Im not sure whats suppose to go inbetween the speech marks.

View 4 Replies

Sub Routine - Textboxes Using For The User To Enter Number

Mar 12, 2012

If IsNumeric(Hundreds.Text) Then
HundredsTotal.Text = (CDec(Hundreds.Text) * 100).ToString("##,##0.00")
DollarAmtVar = CDec(HundredsTotal.Text)

[CODE]..

The above code is from a small program I have written. This test is done on about 30 textboxes I am using for the user to enter number.

The following is the sub routine that is called.

Sub ShowError()

MessageBox.Show(BoxName & " must be a number.")

End Sub

Here is what I want to do but it won't work.

BoxName.Select()

This is so I can put the focus on the different boxes that might contain an error.

View 4 Replies

Create A Small Application That Will Force User To Enter An Even Number?

Oct 5, 2011

I need to create a small application that will force a user to enter an even number but i MUST use a loop. Here's what i've come up with:

Quote:

Dim bynombrepair As Byte
bynombrepair = InputBox("Entrez un nombre pair")
If bynombrepair Mod 2 = 0 Then

[Code]....

View 1 Replies

Create An Application That Allows User To Enter Number Of Tickets Sold

Apr 16, 2012

i'm having a bit of a hard time on setting up the calculations.There are three seating categories at a stadium. For a baseball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Create an application that allows the user to enter the number of tickets sold for each class and the total revenue.

View 3 Replies

Multiplication Table In VB - Popup Input Box To Ask The User To Enter A Number

Mar 21, 2010

I need to code a basic multiplication table in VB. I need a popup input box to ask the user to enter a number, then a label to display the multiplication table for that number from 1 to 9.

[Code]...

View 5 Replies

VB Programming - Raptor - User Enter Number Of Days They Wish To Save

Mar 24, 2010

I have a program for class that requires you to have the user enter the number of days they wish to save for and then the program takes 1 penny and doubles every day for the amount of days the person enters. I was able to get this to work in Raptor but not VB.

'Description: Taking one penny and doubling it over the number of days the user enters.

Dim decPennies As Decimal = 0
Dim intTotaldays As Integer = 0

[CODE]...

View 3 Replies

Designing A Permissions Based Security Model?

Jul 11, 2011

I work on a vb.net winforms app where we currently are using simple roles for security. We enable/disable specific controls based on if the current user has the required role. We are to the point where this is no longer granular enough.Our application is based on different physical locations we call sites. A user might have permission to do something (for example, edit a site's configuration) at one site but not another. Therefore, we now need to lookup permissions based on current user AND current site. Also, a certain user's permissions may be very specific to themselves ie. no other user's permissions are exactly the same as another user's. Therefore we need a security model that's more permissions based rather than role based.

What's the best way to design a new permissions model that can meet these requirements? I want to make sure that it's easy to implement the checking in the code (I don't want a million if statements sprinkled in our SetUIPermissions methods) and we don't want to have to update every user (400+ and counting) each time we add a new permission. Because of this last requirement I think we need to keep the idea of roles but possibly add/remove exceptions for particular permissions for specific users

View 1 Replies

Limiting The Number Of Characters Can Enter Into A Windows Forms Textbox?

Jan 28, 2012

Assuming that I have a Windows Forms textbox and want to reduce the maximum amount of characters that can be allowed in via user entry, how would I do that?

View 2 Replies

Write If Else Statement To Check If Number User Enter Follow Within A Range?

Aug 25, 2009

How to write a if else statement to check if the number user enter follow within a range.

View 5 Replies

Make A Program For Math Where Enter A Number Into A Box?

Apr 28, 2012

So I wanted to make a program for math where you enter a number into a box. Then you click enter. The program has numbers 1-12 next to a check box. If you click enter it divides your number by the numbers 1-12. Let's say you put 100 in that box. Then you clicked enter. The check box next to ten would be checked, 4, 2, and 5 would all be checked because those numbers evenly go into 100. How can I have the vb check to see if the sum is a whole number?

View 1 Replies

Application That Allows User To Select Or Enter Into A Combo Box Number Of Days A Person Will Work

Oct 28, 2009

Create an application that allows the user to select or enter into a combo box the number of days a person will work, and calculates the total amount of pay she will receive over that period of time. Salary is one penny the first day, two pennies the second day, four pennies the third say, and continuing to double each day.

The combo box must list the following items: 30, 180, 365, and 1000. Must be the default drop down box. Use a validating event procedure on the combo box.

The program should go through a loop once for each day, doubling the number of pennies with each iteration of the loop. You will need a running totl of the number of pennies that you add to with each iteration. To calculate the total amount of pay, multiply the total number of pennies by .01 and show the result in currency format.

Public Class Form1

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

[CODE]...

View 14 Replies

Log A Windows User Into A Remote Computer

Mar 27, 2012

Here is what I am doing: I have several servers that are used to run a piece of software. The software is started using a scheduled task. I can have up to three instances of the software running using three scheduled tasks, and three logged in users. Currently I am using a separate program running on two additional servers to make sure these two additional users are logged in, the scheduled task will not run if the user is not logged in. This separate program uses a saved Remote Desktop Session to make sure the users are logged in.

[Code]...

View 1 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

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

Run Application On Windows Startup For All User Accounts On Computer?

Nov 11, 2011

how can i run a application on windows startup for all user accounts on my computer?

View 3 Replies

Run Program For Certain Computer User?

May 3, 2011

Is it possible if I want make my program only work for certain computer user?

Means the program will check the current system user... and If the user is allow by the program... the program will Run...and If the user not allow by the program the program will display Message..."You are NOT ALLOW to use this program" and the program will close.

View 3 Replies

Windows 7 Enter To User Mode And Initialize Hardware And All Other Things Without Any Kernel?

Nov 9, 2010

I want to know: How can Windows 7 enter to user mode and initialize hardware and all other things without any kernel but with a boot loader only?

Download Genius Web Explorer , It's free.
Download Genius Desktop Clock , It's free.
Download Genius Wallpaper Changer , It's free.

View 3 Replies

Create A Program Which Will Allow The User Enter Ten Numbers?

Nov 5, 2009

5. Create a program which will allow the user enter ten numbers. The program is to count how many numbers were above 50?

View 1 Replies

Create A Program That Ask The User To Enter The Amount Of Hours Work?

Sep 22, 2009

I have to create a program that ask the user to enter the amount of hours work for 5 diferent projects in textboxes. The user have to enter the time he worked in minutes. Ex: 153, 280, 600, 130, 20... The total then is out putted into a textbox in this format "13 Hours and 35 Minutes" I'm having dificulties making the conversion and the separation from hours and minutes. I understand that the total is divided by 60, but if we fallow the above numbers the total hours comes out to 1183 / 60 = 19.71. So I'm having problems with the .71 mnts or digits... so from this total I have to output the total of in this particular format: "19 Hours and ?

View 2 Replies

Create A Simple Times Table Program Which Will Allow User To Enter An Integer Value

Jan 22, 2010

could anyone please help me with this1.Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For Next loop to perform the repetition.i can output them to a list box but only last one to a label ive been stuck for 3 days.

View 8 Replies







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