VS 2010 Making Calculator (for School Project)?
Jun 30, 2011
I am making a calculator for a school project, I want to have it so it looks similar to windows calc ( with one button for each number & only one text box),My code has a few blank spots but so far it is :
Public Class calc
Private Sub Btn1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn1.Click
IOBox.Text = IOBox.Text + "1"
End Sub
[code].....
View 5 Replies
ADVERTISEMENT
Feb 5, 2012
so i am new to v basic and as you can see in the picture below that i have 2 textboxes just to put in them 2 numbers and then do mathematical calcualtions on them and a label up there that shows the answer so i wanted to make 1 textbox to type in the 1 st number then press the symbol for example + and then type the 2nd number and then press equal so the result is formed in the same textbox the only problem is idk how i searched google but i couldnt understand here is my source code
[Code]...
View 1 Replies
Dec 6, 2010
Iam doing a project for school (snake game) Ok here is the code:
[CODE]:................
Snake.image is the head of snake and snake2.image to snake27.image are the rest(body...) So i want create a code that (if snake intersect snake2 to snake27 parts) then timer1.stop I have tryed with:
CODE:
But it doesnt work..
View 6 Replies
Jan 11, 2011
I'm wanting to add two forms to my project that will allow me 1) Pull all the current MS Updates installed and list them in a nice looking grid, 2) Pull a list of all the available updates for the machine. I would love for this to work on XP/Vista/7.
View 5 Replies
Mar 29, 2010
how can made school project in vb6 and vb.net2008 with full sources code?How can Made School project in Visual Basic 6 or 2008?
View 2 Replies
Mar 4, 2011
im working on a school project where i shall show/explain how a remote acess program work and i coded the most but when want to send all listbox items from server to the client and in the client is another listbox where it should be transfered over..[code]
View 4 Replies
Jan 27, 2012
I'm trying to make an HTML editor for my school project. color coding the text so if they type <html>, <b>, <body> in any case it'll color code it to turn blue.
View 5 Replies
Jan 15, 2011
I am basically 4 weeks into my first ever programming class and we are working on a project for the game "Hangman". While I have struggled with everything for the past 3 weeks, I have finally cams across something I have no idea how to correct. I am getting a Null.Reference error in the following line of my
If Not strWordToGuess.Contains(strLetterGuessed) Then
Now this code was provided in my project files, it was dated 4/07, I am currently working in VB 8 express, I am thinking this might have something to do with it.
View 14 Replies
Jun 18, 2012
i would like some help with how to start with my FINAL YEAR project work dubbed "SCHOOL TRACKING SYSTEM" . I am so much lost on how it shoud be like and what to actually do.
View 2 Replies
Dec 9, 2009
So I am supposed to be choosing a final project for my visual basic 2008 class. I cannot help but remember an old high school classmate from web design class who made a program that used the speaker built into the motherboard (or whatever makes the start up beep when you turn computer on) to time the beeps to play simple songs. It was very funny and amusing and I was wondering if anyone had seen something similar or knows how to go about making one?
View 5 Replies
Mar 15, 2011
So as the message says i believe im having a problem when declaring an array as control. The background:Im doing a school project where a picture is covered by 48 buttons. When a user clicks a button, they are asked a question. If they answer write, the button disappears until the whole image is displayed.
Im using each buttons visible property to hide it. Now that i think about it, i should probably un-enable it after a question is answered correctly.anyway, I keep getting a NullReferenceException when making the visible set to false. Any suggestions would be awesome. I have already created all the buttons and named them Q1-Q48.
[Code]...
View 7 Replies
Mar 25, 2011
I need help writting a Trivia Game for a school project. The teacher wanted us to get used to looking to forums and google for help so he refuses to help us for this particular summative.
What I want to know is.. how to use a streamreader to read questions randomly from a text document located in the debug folder (I have 10 questions all in 1 text file in the debug folder, and the same for all of my answers) how to use a streamreader and split function to read answers from a text document located in the debug folder to a combobox.
[Code]...
View 19 Replies
Dec 13, 2009
I move a VB project from school and home on a flash drive. At school drive mounts on E: at home it mounts on F:. I have 4 forms, Form1, Form2, Form3. Form4. Form1 and Form3 have incorrect file paths, it has the E:, but Form 2 and Form4 path change just fine when I move it from school and home.
View 1 Replies
May 5, 2010
I am in the process of writing a battleship game for a final project for school. I get what to do for the most part, but need a little jump start for writing the "ships" class. Does anyone have any suggestions?
So far my game starts with a dynamic array of buttons, but as of now they don't do anything. I need to be able to have the user place ships in places and have the computer randomly generate positions.
View 2 Replies
Jul 19, 2011
Im doin my school project on taking order system(POS) in a restaurant using VISUAL BASIC?the word visual basic is very new for me...i already do some of the coding,this system not using database,just a simple POS system..When i insert y(for yes),msgbox for order_code and order_quantity apear.but when i insert n(no),msgbox for order_code and order_quantity apear again for one time then stop.then msgbox for calc2 pop out but the value isnt right..calc2 also calculate the order_code and order_quantity,the one that apear after i strike no.
[Code]...
View 1 Replies
Jan 20, 2010
I have to write a program that allows users to specify two numbers and then adds, subtracts or multiplies them when the user clicks on the appropriate button. The out put should give the aritmatic performed and the result. I inserted an attachment on what it should look like also Public Sub btnCompute_Click() Handles btnCompute.Click " here at this one I am getting an error message Error 1 Statement is not valid in a namespace. C:\Users\Tiffney\Desktop\School projects\WindowsApplication1\Form1.vb 1 1 WindowsApplication1"
[Code]...
View 14 Replies
Oct 1, 2005
how to make a simple calculator using vb?
View 11 Replies
Mar 18, 2012
I have a small project from my university they have asked us to make a calculator , well everything is easy so far except the 3 last functions that I need help with.
as we all know vb has already some math functions implemented in its libraries the problem here those functions giving me wrong results I am trying to get math.tan(lblnum.text) math.sin(lblnum.text) and math.cos(lblnum.text)
they don't output the correct numbers any idea why?
View 4 Replies
Nov 30, 2010
im making a calculator with multiple function but im stuck on two main parts on it. i wrote a big chunk of code for the total calculator. it adds, sub., multi., or divide the amount of numbers the user puts in and then it ask them to enter them in individually using a loops, radio buttons and a listbox. im stuck on the loop because it will as for the 1st number and the last number heres the [code]......
View 5 Replies
Nov 3, 2009
I'm trying to make a calculator application. Just as practice, as I'm new to visual basic (.NET 4.0) coding. I've got this so far.
[code]...
Note, I've not programmed it to do operations yet, I'm trying to get this sorted out first. My issue is, when I enter my numbers, they do not store as a variable, they both store as zero.
View 22 Replies
May 6, 2009
Ok. I just took my final for VB and the last chapter we did was on procedures and functions. Functions was the only thing out of this whole semester that I was just completely lost. I'm trying to work on this cause I'm taking Advanced VB next so I wanna know what I'm doing. So I'm trying another tutorial in the book and I'm really lost. Here is what the it wants you to do.
Retail Price Calculator
Write an application that accepts from the user the wholesale cost of an item and its markup percentage. (For example, if an item's wholesale cost is $5 and its retail price is $10, then the markup is 100%)
The program should contain a function named CalculateRetail that receives the wholesale cost and markup percentage as arguments, and returns the retail price of the item.
When the user clicks the Get Retail button, the program should do the following:Verify that the values entered by the user for the wholesale cost and the markup percent are numeric and not negative. Call the CalculateRetail function Display the retail cost as returned from the function.
Here's what the calculator looks like and my code so far.
Public Class Form1
Private Sub btnRetail_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRetail.Click
[Code].....
View 4 Replies
Jun 3, 2010
I am developing a very simple game in visual basic 2008: a roulette. And yet I found problems in develop it.My question is this: I have an image ,containing all the roulette's numbers and I want to associate the spaces of the different numbers to different buttons, so that which time I click in a certain number on the image it dos some action.How can make this association of the different spaces in the image and different buttons?
View 3 Replies
Nov 30, 2010
I am attempting to code a VB project for one of my classes. The assignment is to write a program that take the input of Wholesale cost and markup percent, then calculates retail price. When I finished the code, any input I use results in the retail price showing as $0.00.
Public Class Form1
'Declares a variable to hold the wholesale value
Function wholesaleIsValid() As Boolean
Dim dblTempValue As Double
[code].....
View 2 Replies
Feb 27, 2011
just Addition only at this time each number 0 to 9 have this code[code].....here what he says..Write the code for the equals button. There's only three lines in total, and here's a little help.
You need to use the other variable that was set up at the top of the coding window, total2. The variable total1 will be added to whatever is total2.The first line of code will be this
total2 = total1 + (something missing here)
Your job is to supply the missing code. In other words, replace "(something missing here)"
Remember that total1 contains the first number to be added. And you know where that came from. The only thing left to do is to add the second number.For the second line of code, you need to transfer the total2 variable to the textbox.For the third line of code, all you are doing is resetting the variable total1 to zero. That's because after the equals button has been pressed, we have finished adding up. If you wanted to do some more adding up, that total1 will still hold the value from the last time. If you reset it to zero, you can start adding some new numbers.
View 2 Replies
Feb 7, 2010
I have a multiple form project that is a mortgage calculator and I am having trouble with my Payment Numbers. One of the things I am listing in the amortization table is Payment #. The variable for that is Lyears. It seems like Lyears is set to 0 so it continues and never stops.
Public Class Week3Calc
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CalcBtn.Click
Dim MonthlyRate As Double 'Initiates variable
Dim YearRate As Double 'Initiates variable
[code].....
View 4 Replies
Nov 11, 2010
It's just a small calculator project so it's no big deal, but after I had built the project, I wanted to change the project name and all the file names that had that string in it (and all internal references to that string). I had played with this before and knew that it was asking for trouble but I thought, "What the hell, I'll try it again." feeling a bit brash.
Well, everything works fine in debug mode, but there is this DOS window that pops up just before the main form does, and it doesn't go away for the entire debugging session. I think I see that window pop up on all other projects too (if the main form doesn't cover it up completely), but normally, it's only there for a split second.
View 2 Replies
Jun 28, 2010
I'm very new at using Visual Studio (about 3 days!). I want to create a project that I created into an executable file. The help menu states that I should go under the 'File' drop down menu and select 'Make' to convert into an .exe format. However, the 'Make' selection is not present under the 'File' drop down menu. How can I make a project into an executable file??
View 9 Replies
Mar 27, 2011
I am making a project on VB.NET, after the completion of project, is it possible to install it in anyone's computer?I mean to say, the project which I have made in VB.NET 2008, can be only run through Visual Studio,
View 2 Replies
Nov 4, 2011
I can't get the loop to work. The calculator is suppose to show how far someone goes for each hour increment (i.e. if they punch in 3 hours, it should show a number for 1 hour, 2 hours and 3 hours; if they punch in 10 hours it should show a number for 1 hour, 2 hours, 3 hours....etc. up to ten hours, etc.) I can't get it to show anything except for the total number of hours traveled and total distance.
Private Sub DistanceButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles DistanceButton.Click
Dim speedIsValid As Boolean
[Code]....
View 1 Replies
Dec 19, 2006
i'm making a VB 6.0 project to copy files to WCE 5.0 Device. i copied a code i found in msdn but when trying to compile it send me an error: Expected: Identifier[URL]..
Private Declare Function WaitForSingleObject Lib "kernel32" ( ByVal _ hHandle As Long ByVal dwMilliseconds As Long) As Long
View 3 Replies