VB Console App Calculator?

Oct 26, 2011

I need a little help in programming a console calculator.I'll start by saying that VB is a new programming language for me. I started a class in school that uses VB to teach an introduction to computer logic and programming. It's not the first language i have learned, but it the first one that i have gotten in depth with in console apps.I have a basic set up of asking the user for the first number, then the operator, then the second number.I'm currently using a Select Case statement to start the calculation area of the program, a Do Until at the beginning of the Select Case for a repeat, then it proceeds to getting the numbers and operators.

I'm also wanting to get all the possible math operators that VB provides included.What i'm hoping for is to clean up my code and make it to where the program asks the user for the equation itself. Example.

Console.WriteLine("Enter the equation")
equation = Console.ReadKey()

View 15 Replies


ADVERTISEMENT

C# - In A .NET Console App, Have A Line Of Text Stay Visible In The Console All The Time?

Jun 1, 2011

I was thinking of adding a simple bandwidth monitor to a console application and I was wondering if it would be possible to keep a line in the console window visible at all times. I could set something up manually to pass new console output into a method that would get the contents of the console, clear the console, add the bandwidth data on the first row, then rewrite each line of previous information back to the console, etc.. but that seems like a really hacky way to go about it, and I'd be limited to the amount of rows visible at once in the console window (no scrolling).

STATS: Downloaded: 2599b, Uploaded: 754b <- this always stays at the top
constantly changing text
constantly changing text
constantly changing text

[code]....

View 3 Replies

C# - .Net Console Application That Doesn't Bring Up A Console?

Jun 1, 2009

I have a console application I'm using to run scheduled jobs through windows scheduler. All the communication to/from the application is in email, event logging, database logs. Is there any way I can suppress the console window from coming up?

View 5 Replies

Keeping Console From Closing & Writing To The Console?

May 11, 2011

so I am making a program that will run a server for a game. I've programmed a console into the form and it works but it only works until it is finished reading the slandered output.

[Code]...

View 2 Replies

Console Application Without Showing Console

Aug 8, 2010

I am currently working on an application, where I am using a console application, that will set up the application prior to the main form is run. This is no problem I've got that all working perfectly, the only problem I have is that the console is showing while the application is running, I was wondering whether anyone knows any way in which I would be able to hide the console before it gets shown to the user.

View 12 Replies

How To Use Console.Write() And Console.Read()

Mar 6, 2011

I am not able to view the results of Console.Write() and Console.Read() in VB.Net.

View 2 Replies

Send ASCII 0-255 From One Console To Another Console?

Feb 23, 2011

I am trying to send/print/write all possible ASCII codes (0-255) to another console-window application. From my application I would enter the name of the "receiving" application and the comma seperated hex values that should be sent/print/written to it. I have used AppActivate to select the "receiving" application and then have used sendInput and send.sendkeys to attempt to send the desired ASCII value. However, these appear to have limitations on values greater than 127. I need to be able to send all 255 values.

View 1 Replies

Showing Console In Console Application?

Dec 15, 2011

How do I get the console from closing immediatley upon opening in a Console Application program? I have all of the code written but when I run the program it pops up the console window and then immediatley exits so I am unable to read what is in the window to see if my program is operating correctly. This is the first time I've ever used a console window so I don't know where in the code I would need to put "whatever it is" I might need to put to keep the window open until closed by the user.

View 7 Replies

VS 2010 Console Application Without A Console?

Aug 23, 2009

It sounds confusing but it's not really. What I need is basically a way to emulate the console style text, without using a console. What I'm really doing is trying to do a matrix effect on my form background, by drawing symbols and moving them, alternating their colors (see this video for what I mean).

Is there a way to do this effectively with a timer and a draw event, with the timer calling the draw event and changing the intervals?

View 3 Replies

Difference Between Console.Writeline And Console.Error.Writeline?

Oct 13, 2009

I have a method called Connect() which connects to a PLC. But if it fails to connect, I want it to try again. So what have come up with, is this:

[code]...

View 8 Replies

Calculator / Add A Beep?

Jan 22, 2010

I have this:

If (TextBox1.TextLength > 16) Then Return

But I want to add a beep to how can I do it? I mean I can only Return and I want to use Beep() too.

View 6 Replies

Add Numbers In A Calculator?

Jan 29, 2009

I've made a simple calculator, everything works except for the adding (+) function. Such as 3 + 4 = 34 (which it doesn't). It takes it as a string, rather than a number.

Here's what I have so far:

CODE:

Again, the problem is the adding is not functioning.

View 1 Replies

Add Tax On A Simple Calculator?

Oct 11, 2009

I am doing a tutorial for a simple calculator. My question is how can I add code to make a botton that add my tax % to the total amount I have.

Option Explicit On
Public Class Form1
Dim firstnumber As Single

[Code]......

View 1 Replies

Calculator - Comma / Dot Appear Only Once

Dec 7, 2009

The comma/dot may appear only ones. How do I modify that within this code??
bpuntingedrukt as boolean
Private Sub VoegCijferToe(ByVal sCijfer)
If Len(lblDisplay.Text) > 15 Then Exit Sub
If sCijfer = "0" And lblDisplay.Text = "0," Then
[Code] .....

View 24 Replies

Calculator And Exe.file?

Jan 11, 2011

Okay, i have two questions i will merge into one.I am using Express, just in case its important

First of all, i am trying to create a calculator using Visual Basic, which will end up being a lot like the 'Calculator' application built into all Microsoft computers.

I am having trouble however, with adding more than one thing to a text box.

[Code]...

View 13 Replies

Cannot Get A Calculator To Work

Jun 18, 2012

i have to finished a cacluator, all my code seems to be working apart from the equals button and i do not understand why..i've tried several different things such as a case too but nothing seems to work to get the equals button working. This is my code, no need for all the buttons they are the same and ive declared variables.

[Code]...

View 2 Replies

Day Of Week Calculator?

Mar 30, 2012

Sorry in advance. I emailed myself my coding since I don't have vb on my personal computer. Sooo, the format is going to be off. But my program allows the computer to generate a random date. The user has to guess what day of the week the random date lands on. I have written the whole code. It all works except when user checks his/her answer. The answer always comes up as incorrect. Here is the coding:

[code]...

View 5 Replies

Dosage Calculator In C#.net?

Jul 13, 2009

I want Dosage Calculator in c#.net for my module completion.

View 2 Replies

How To Build A Calculator

Dec 17, 2009

I want to build a calculator, i want to learn vb.net myself so i contacted you.

View 2 Replies

How To Code The Calculator

Apr 3, 2009

how to code the calculator?

View 2 Replies

How To Design A Calculator

Jun 22, 2010

How can i design a calculator?

View 2 Replies

How To Make A Calculator

Nov 26, 2009

does anyone know what i need to do? if you do make a youtube video and post it in this post.

View 1 Replies

Odd And Even Number Calculator?

Mar 27, 2011

I need to do a programme that checks if the number a user enters is odd or even and then adds together all the odd numbers and all the even numbers seperately and displays the total in a label. My code just displays "0".

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim oddNumber As Integer

[code].....

View 1 Replies

PayRoll Calculator On VB?

May 22, 2010

You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.The program should calculate the employee&#65533;s pay for the week. The employee should receive 1 &#65533; times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:

Option Explicit On
Public Class Form1
Private Sub GroupBox2_Enter(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 3 Replies

Polynomial Calculator In Vb?

Nov 14, 2009

VB.pdf (69.13K)Number of downloads: 72 VB.pdf (69.13K) Number of downloads: 72

View 1 Replies

Tip Calculator Using 2 Classes?

Dec 7, 2011

So Im having trouble taking the code i have and being able to break it down into a tip class and a total class along with the main form. i did the whole code in on form and now im so confused on how to break it down.this is what i have! its alot because im using radio buttons.. on and im using visual

Option Strict On
Option Explicit On
Imports System.Convert

[code].....

View 3 Replies

Creating A Backspace Key For A Calculator?

Dec 2, 2010

i am creating a backspace key for a calculator. first of all a currency needs to be chosen by clicking a button, when for example the is clicked the text is entered into the texbox. But when i use the backspace it deletes here is my code..

Private Sub btn_pound_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_pound.Click
'Enable the keypad when the pound sign is clicked,Disable the curency buttons after'
pnl_numbers().Enabled = True[code]....

View 4 Replies

Add A Minus Function To My Calculator

Jul 22, 2010

I am new to the MSDN forums and was wondering if you could kindly help me with a learning project.I have created a calculator with a simple addition function button and was wondering if the method I used to create it is efficient and how I may go about adding additional functions such as a minus function.Will my current code allow m to implement a minus, multiplication, or division function easily?How do I add a minus function and would adding a multiplication or division function? Also would can I use the same global variables to do this.[code]

View 1 Replies

Build A Scientific Calculator With Vb?

Aug 11, 2009

I'm trying to build a scientific calculator with vb .net, except it is vista glass :-p

I basically want the user to be able to enter an equation like SQRT(5 * 6) / (2 ^ 4) and then I want vb to use system.math to solve it. If I write this in my code, vb is able to do it, so how could I do this at runtime.

View 4 Replies

Build A Simple Calculator In VB?

Mar 20, 2006

how to build a simple calculator in VB; i got the interface with buttons and text box alredy and i figured out how to put more then one number using buttons alredy(Disp.Text = Disp.Text & 1) , Looking at the windows calc, how do you store the number u just entered into a text box and alowe user to enter another to performe calculations, what code should i use for equal button and etc.

View 10 Replies







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