The 1/x Button (reciprocal Of The Displayed Number)
Aug 13, 2009I need the code that makes this button functional.. I have the textbox named lbldisplay.text, but i need the button code for the reciprocal of the displayed number.
View 3 RepliesI need the code that makes this button functional.. I have the textbox named lbldisplay.text, but i need the button code for the reciprocal of the displayed number.
View 3 RepliesI am doing a bar cash register and I want to use a if statement to see if fosters button and number 1 on the number pad are both pressed then multiply constant by quantity number
View 1 RepliesI'm trying to do this division and the result to be displayed on a eight decimal number.
Dim r1 As Integer
Dim r2 As Double
r1 = Val(TextBox16.Text)
r2 = r1 / 60
TextBox18.Text = FormatNumber(r2, 8)
The value or R1 on this case is 273.4 but it varies according with the result obtained so I can not allocate a constant number to r1. The problem is the result that I am getting is 4,55000000 instead of 4.5566666
I am trying to determine output displayed when a button is clicked in visual basic for the following code:Private Sub btnCompute_Click(...) Handles btnCompute.Click Dim a As Integer = 1, b as Integer = 3
[code]...
Dim names(3) As String
Private Sub frmNames_load(...) Handles MyBase.Load
names(0) = "Al"
names(1) = "Gore"
[code].....
I have 2 buttons, named: 'Select item 1' and 'Select item2' to these buttons I have added images. how? when the form loads I execute this
Private Sub LoadButtonImages()
btnCompare1.Image = My.Resources.close1
btnCompare1.ImageAlign = ContentAlignment.MiddleLeft
[Code]....
when I test the program on my friend's pc it gives an error and does not display the image. ( and yes I already tried putting the executable in exactly the same folder as it is on my pc WITH the image folder.. )
so is there any way to use the first method of loading the images and ensuring the size is correctly? Ive added 2 screenshots to show you what I mean by incorrect size..
This my first time using a DatetimePicker so hopefully I'm missing something obvious.I have a bindingsource that has a datetime field that is set to use the short date format. The field is bound to a datetimepicker control.The problem is if I click the Add button on the navigator a new record is displayed and the dtp shows the current date. But if I then save the record the date is not saved to the database.If I go into the dtp control and select a date, it saves the date just fine.
View 4 RepliesI am having problems with these questions... 4. Private Sub btnCompute_Click(...) Handles btnCompute.Click
[Code]...
I have a datagridview.. It is unbound to any database and has 2 columns.1 is item name and other is amount/expense, incurred..
I want the total of expense incurred be displayed in the textbox on button click ie adding the numbers in amount column.I tried something like this, but not working.[code..]
I created a listbox using VB.NET. When the user select an item (it is a string format) in the listbox and click on a button, there will be a number beside the string and the number will increment which time the button is clicked. Anyone know how to do it...?Below is the coding I'd done, but I don't know how to do the increment part. Anyone know what coding I need to add?
Dim no As Integer = 0
listBox.Items.Add(listBox.SelectedItem & no)
adding all the numbers in a list box then multiplying it by a %.theres one listbox and two buttons, and two textboxes.i've completed everything but this and can't fibd it in my book. I just looking for pointers. this is what i have which i know isn't right
Dim sum, cost As Double
sum =
cost = sum * 0.06
lstbox.Items.Clear()
lstbox.Items.Add("Total Commission =" & cost & ".")
I have a 3 digits of number in Multiine TextBox
[Code]...
that mean from left to right(small to bigger) and from top to bottom(small to bigger)
When a user clicks the + button on the binding navigator, I want to set the displayed item of acombobox to the value displayed in a label. The combobox is bound to a field in the table. Theproblemis that when the user clicks to add a new record the combobox is cleared and they forget to select a value before they click save.
View 7 RepliesOn each of my form I have put an 'Exit' button. When user clicks it, another form is displayed (I don't want to use 'MessageBox') asking user whether he really wants to quit. If user clicks yes the form closes. If user clicks no, form is redisplayed.
However, out of 4 forms only one form refuses to redisplay. The code is exactly same on all forms. I have included 2 Express 2008 projects showing one form each in the zip file apps-ssk.zip
i have problem in my record database. why when click btnOut. system will save status=1to set number in button. this is code, please check if any erI'm using vb 2008 and databse mysql
form 1
Private Sub btnIn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnIn.Click
[code].....
how to click a button that will always contains a certain text, but will always have a different number behind it?For Example:
"text" = Static "text2" = Dynamic
"texttext2" That is the button id.
I don't really need all the code, just a method of doing something.I'm trying to do number #42 on page 496 of the VB 2005 book. I'm able to get each number from each button on the phone to display, but I'm not sure how to go about adding the numbers to the number already on the screen. I can get 1 then a 2, then a 3, etc but not 123.
I believe the method is adding to a string, and I know I have to use concatenation or something.. I just need a push in the right direction.
I want to make a program that generates a 6 digit number for me by clicking a button. I can make a simple counter, but the nunmber I generate can only be used one. So , I need to store that number somehwere (access, xls, whatever) and then start the next count from the last number.
View 12 Replies1. I need a button to be clicked and generate a random number2. I need to take said random number and store it in a place where I can access it from a timer.3. I scan for a webpage and if the webpage is true then I need to output said random number. One time
View 1 RepliesHow to locate a button based on the handphone number or any number? That means if I assign the button to coordinates 25, 14 and number 1 as the button name. So when i key in 1 in the text box, only that button will light up the rest wont. So that means the statement will be like:
if textbox1.text = "01" then
' button at 25,14 backcolor = black
end if
I have a button and a text box. The text box should start out with number 41. Each time I click the button the text box number should decrease by 1 until it hits 20 then when the button is clicked nothing happens. I have tried multiple pieces of code from For counter 41 To 20 Step -1 to If counter <> 0 Then textbox -= 1, but it only works for one click. Not sure how to keep it decrease on every button click until i get to 0.
View 6 RepliesWrite a Windows application that allows the user to enter a seven-letter combination corresponding to that number in a multiple line TextBox when the user clicks the Generate Words button. Avoid phone numbers with the digits 0 & 1. How to write a if or for loop to generate words.
Public Class Form1
Dim digits As Integer() = New Integer(6) {}
Dim letters As String(,) = New String(,) {{" ", " ", " "}, _
{" ", " ", " "}, {"A", "B", "C"}, {"D", "E", "F"}, _
{"G", "H", "I"}, {"J", "K", "L"}, {"M", "N", "O"}, _
{"P", "R", "S"}, {"T", "U", "V"}, {"W", "X", "Y"}}
[Code] .....
I have the following code, as i want to be able to press the number, from 0 to 6, and the corresponding button will be pressed. however, it doesn't work!! please could you tell me what's wrong with it?
[Code]...
I am creating a simple application to show an amount based on the radio button selected eg. radButton1=35 radButton2=75 radButton3=150, and another button to double the total IF selected. Here is my code so far, I do not get any calculation when the program is executed.[code]
View 2 RepliesI was working in a Game in VB, and I was making a Loop that will start when the game begin and end when someone win.But then I found a problem:I have my main code in the loop and a Randomizer that starts when a button is clicked.So my problem is that I can't work whit the random number in my loop. How can I access the random number (it as to be choosen after a click of a button) in my loop?!
View 3 RepliesI am trying to add functionality to automatically click the receive button if the Form1 is loaded.
Even when i did not attach it to the timer the bCheckmail.PerformClick() did not work - Ideally this application will be loaded and check mail every 15 min.[code]...
im a bit new on asking questions if you have a hard time reading this ill try and make t a bit clear for you but anyways.with this code in a button it lowers the number in the textbox and then counts back up
[Code]...
I want to make an button that runs an action with the frequency from an number input in Visual Basic .NET . How do I do it? Could someone point me out the syntax of such an action?and all that I want to do is use an number from "NumericUpDown" to give a button how many times the action the button has to do it.
View 2 RepliesHi, i want to click a button and it will select the number 2 item in a listbox?I have this but it does not work :/
ListBox2.SelectedItem = 2
EDIT: nvm, i found it
ListBox2.SetSelected(2, True)
I need a textbox where you can add a number and if you press a button that it will repeat the function of the button the number of times as in the textbox.
View 9 Replies