Get Sqrt Button And Percentage Button To Work On Calculator?
Sep 23, 2010
I got every other operation button to work besides sqrt, and percentage. I've done the same thing for addition, subtraction, etc. and it doesn't seem to work.
here's my globals
Public Class Form1
Private first As Double
Private second As Double
Private oper As String
[code]....
View 2 Replies
ADVERTISEMENT
Mar 15, 2011
[code] My problem is the CE button and I'm supposed to be able to add 1 + 2+ 3 + 4 + 5 = 15, but when I calculate it only does the 1 + 2 its supposed to reapeat last process each time you hit the equal sign.
View 1 Replies
May 3, 2012
How does the last button work, heres my first, next, previous and last button codes"
next button:
[CODE]..................
previous button:
[CODE]..................
first button:
[CODE]..................
last button: *not working*
[CODE]..................
View 6 Replies
Nov 13, 2011
I need to make a program in VB but I have absolutely no idea what to do or how to write the code for it.The program needs to roll 2 dice comprised of picture boxes (one large picture box with 7 small picture boxes inside it for each) add the two numbers together and then calculate the percentage of each total number per roll.
I'd just like to say please bear with me. I'm a total newbie to coding. I know a little bit of web development but I'm incredibly new to making programs. Teach me and I'll get better, I promise.
View 4 Replies
Jan 7, 2010
I'm completely new to programming and wondered if you could help me. I've designed a simple calculator that can add numbers together but am now trying to create a subtraction button. This seems more complicated, I've searched various forums but am a little confused and wondered if any of you can help or point me in the right direction. Here is the coding I've done for the Add button (cmdPlus):
Private Sub cmdPlus_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdPlus.Click
[Code]...
View 4 Replies
Mar 23, 2010
I am tring to make a price check calculator and in order for me to do that i need my users to choose their price level.
Right now i have a small web form created and its quite simple but i need my button for onclick to do link to corresponding forms that it goes to...Right now i have it as:
Public
Partial Class WebForm1
Inherits System.Web.UI.Page
[Code].....
View 3 Replies
Nov 29, 2010
I am making a calculator. I need a button that functions like a Backspace-button on a calculator. Erase the last inserted char, or what ever may work.
I use:
Button1
TextBox1
View 3 Replies
Apr 7, 2009
i m working on a payroll software, and for user facility i want to provide calculator and Microsoft excel file with our module, so there is no need to explciltly open the calculator,,whenever it is required,,,,,i want the code that provide me calculator by clicking a tool strip button on mdiform?
View 3 Replies
Feb 19, 2010
Private Sub uiSCORE_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles uiSCORE.Click
'Displays Correct or Wrong in Labels
If ui1Textbox.Text.ToUpper = "FOOD" Then[code]....
I finally finished all my labels and textbox codes for this button.But now I have to code it so that I will be able to click the button and it will calculate all the wrong and correct answers in the labels and then finally place the percentage score in the uiScorePercentagelabel. What I dont understand is how to calculate all the different labels as one and then show the percentage right in the appropriate label.
View 6 Replies
Oct 30, 2010
Using 2 forms how would I click one button, from another form? ie In VB 4,5,6, I would used to do it as:-
Form 1:
private sub Command1_Click()
msgbox "Say Hello"
End Sub[code].....
If I clicked the button in form2, it would automaticlly, click the button in form1. Do I, do it the same way in VB Express or has it changed?
View 5 Replies
May 23, 2010
I am trying to get a percentage that just does not seem to work.I am using WMI to get the Total Physical memory of my system and then the Free Physical Memory. Then get the percentage.
2147483648 - Total Memory
838028 - Free memory
According to Task Manager my physical memory is 59%. This is the code I am using but I can not get 59% or 41% that is free.
temp = FM/TM
temp = temp * 100
percent = FM * temp
View 5 Replies
Jun 7, 2011
Im trying to get a sales percentage program to work and im having trouble on the last part. My homework is to get the original price from the customer and then take the sales percentage off and show how much it is. Then after the first percentage is off take an additional percentage off part and then show the grand total. I got all the way up to the additional percentage off part to work right. I dont understand why I cant add an additional percentage of and the program wont recognize it and work right.
Public Class Form1
Dim Num1 As Integer
Dim Num2 As Integer
Dim Num3 As Integer
[code]....
View 3 Replies
Aug 24, 2009
My app currently loops the progres bar(to show sending of image) rather then work like a percentage progbar. This is becaus ei do not fully understand how to go about this.Whats the best way to add a progbar(well recode mine) to work as a percentage complete? Since it's a httpwebrequest thats being sent im not sure what else to google for on a tutorial
View 6 Replies
Oct 26, 2009
i cant seem to get this code to work, what am i doing wrong, when i press the enter button it doesnt do anything
Option Explicit On
Option Strict On
Option Infer Off
[code]....
View 5 Replies
Dec 28, 2011
I have a DGV I am working on, and I have many columns.dgv bind to two table my problem with update button dose not update and gives me wrong massege ""Dynamic SQL generation is not supported against multiple base tables"
Imports System.Data
Imports System.Data.OleDb
Public Class Form4
[code]....
View 1 Replies
Aug 18, 2010
I made a custom button to input keypresses:
<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
Partial Class KeyInputButton
Inherits System.Windows.Forms.Button
[code].....
View 3 Replies
Jan 13, 2011
I have a form in visual basic 2010 in design view. And when i debug the form. the button i have put on the form does nothing. i want the button that i added, to do what the add new item does on the toolbar at the top of the form the code i have now is
Public
Class
Form1
Private
[code]....
View 6 Replies
Mar 10, 2009
I have a form in VB.net. When the applications runs it populates the data on a datagrid from the database. Then I have an export to excel button which when clicked creates a spreadsheet and dumps all the data in it. Nice!!!Now, what I want to do is have another button to auto email the work to my Boss. The work should be presented to him in a spreadsheet form, therefore I reckon after the export will be ideal or any ideas will be handy
View 2 Replies
Oct 29, 2010
this is the second time I have had the same problem come up so maybe some of you have had the same issue. I have a form that has only a text box a list box and a button. The list box is loaded with part numbers from a database, the text box is used to search for a part number and the button is to accept the selected part and close the form.
[Code]...
View 1 Replies
Jan 15, 2012
When i run the program and click the cost button, it only returns a value of £0.00 for insurance cost and total cost.
Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCost.Click
Dim Cost As Double
[Code]......
View 4 Replies
Dec 14, 2010
Option Strict On
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
'The btnCalculate click event accepts and displays up to 20 hours from the user and
[code].....
I am using Visual studio 2008, and I cannot get the listbox to generate the lists, nor can I get the calculate button to do work. I click it, nothing happens. BTW this is coded the way the instructor directed in the audio cast that was published for the class.
View 6 Replies
Aug 6, 2010
cmbproduct actually selects successfully
but the btnadd.performclick fails (for some reason)
cmbProduct.SelectedItem = "Single Line | Provide"
[code].....
View 2 Replies
Mar 14, 2009
How can i work with Next and Previous button, in VB6 with the help of record set it was quite easy, but in dot net i little bit confused, how to do it?
View 1 Replies
Jul 25, 2011
I have this code in ButtonClick Handle event but nothing works :/ I was wondering why... I tried msg("") as well as the first line in the code to see if it works but nothing!
Dim myConn As SqlConnection
Dim cmd As SqlCommand
Dim sqlString As String
[code]....
View 7 Replies
Aug 1, 2010
Button.performclick not work when it visible = false?
View 4 Replies
Nov 11, 2009
i got 5 treeview with checkboxes when i click button update i need to uncheck all the checkbox i also got a button which can clear all the checkboxes which it uses javascript function to clear i was wondering whether execute update after tat execute clear button automatic? it tat any way to implement this function? here is my java script of clear button which word perfectly
[Code]...
View 1 Replies
Jun 23, 2010
Assume an application uses the Dim SalesArray(1 to 10) As Integer instruction to declare an array named SalesArray. The array contains 10 sales amounts. When the user clicks the DisplayAverage button on the form, he or she should calculate and display the average sales in currency format. The code for the DisplayAverage button doesn't work. Fix it.
[code]...
View 2 Replies
Oct 29, 2010
I'm doing a project in which I have 5 radio buttons. I want each of them to show me a different image when I click on them... My guess is that I have to usea Picture Box. How do I make them work together?
PS: When I click on another radio button I want the other one to disappear and show me the new one.
View 4 Replies
Jan 30, 2012
I wrote a program which is editing data from database. I used few tutorials (I`m beginer) and everything is working fine(I can make changes in datagrid). but when I`m trying to save changes made in dataset(e.g. save added record) I can not to that (there are no changes in my access database, but inly in datagrid)what is interesting when I delete record - changes are saved and record is deleted from db. where is my mistake? what is wrong? maybe some tips what can I improve in this small program?
[Code]...
View 10 Replies
Jul 9, 2009
My Com1.text has nothing in it but yet the button1 is still visible when it should be false and not showing. This worked fine in vb6 using command.caption.[code]
View 14 Replies