Calculating Totals With RadioButtons?
Apr 12, 2009
I have yet another question. I have set up a series of radioButtons to create a menu of choice for a class project and am trying to set it up so that there would hypothetically be a discount on a purchase of two or more t-shirts, I have the coding set up so that if any one item is checked and the calculate button is clicked, then the dollar value or "total" will show up, however I am not able to set up a total for more that one item, it clears the previous "total" and sets up a new total for the most recent t-shirt value checked.
[Code]...
View 4 Replies
ADVERTISEMENT
May 19, 2009
im doing a project ive got most of completed just for some reason its not calculating the totals?
View 1 Replies
Apr 24, 2009
1) My program has 3 groupboxes each consisting 3 radiobuttons. Based on what is checked in the first box, and then what the user chooses in the second box, I either need to hide the 3 box and choose one option, or keep it showing for the user to select an option. The hiding is because based on the previous choices, there is only one option for the user in the 3rd box, and so I don't want to confuse the user nor waste their time. So I when the user selects radiobutton1, I need to hide groupbox3 and select radiobutton2.This is what I have previously attempted and it didn't work.
[code]...
How can I select the radiobutton using code like shown above?2) My second question is regarding scanning strings. I have 2 output strings. They either print a device or a message saying why the user doesn't get an output. At the end of the code, I need to scan through the strings until I get to a space and then store that as a string. How does one go about doing this?
View 7 Replies
Apr 1, 2010
Handling multiple radiobuttons, only one should be selected in group
View 2 Replies
Mar 30, 2009
Im trying to use a CheckboxList Control to Store Yes and No and i noted there its a property on the control
"Selection Mode" One/MultiSelect/MultiSelect Extended
i set One expecting it to allow only one item being select at the same time but it doesnt work as expected, my question is there its another property to achieve this without having to code the event?.
i could do it by coding the event but, im tired of coding stuff that really isnt needed, since there are routines for that on VB.NET.
View 1 Replies
Aug 26, 2010
I want to group RadioButtons, but I don't want to use the visible control GroupBox. Is there something like the Java ButtonGroup in VB.NET?
View 3 Replies
Dec 6, 2009
How do I get all the radiobuttons to be unchecked when program is run? Right now there is always one button that is checked. Using VB2008. [URL]
View 9 Replies
Aug 2, 2009
it's about a program mode, i want to hide all except one tabpages if i check the "standard"-radio button.
When i check "advanced" the tabpages should be visible again.
"standard" is radiobutton1, "advanced" is radiobutton 2
View 4 Replies
Jun 8, 2011
My assignment is to get the Get Monthly Income (Num1)Get Monthly Home Rent/Mortgage (Num2) Get Other Monthly Payments (alimony, child support, student loans) (Num3) Display Allowable Monthly Car Payment Display Maximum Car Value (interest rate based on credit) (answer) Public Class Form1
[Code]...
View 5 Replies
Nov 29, 2010
I have a panel on my GUI with radio buttons. When I run the code to determine which is the checked radio button from that panel, the code runs fine, but the panel disappears from the GUI after that. Here is the code I have to determine the checked radio button:
Dim rbName = (From r As RadioButton In Panel1.Controls.OfType(Of RadioButton)() Where r.Checked Select r.Name)
System.Console.WriteLine(rbName.First)
I have tried using:
Panel1.Visible = True
and also
Panel1.Show()
Panel1.Refresh()
but it doesn't show the panel again. I tried the same thing for individual radio buttons such as RadioButton1.Visible = True and it doesn't work.
View 2 Replies
May 3, 2012
I'm making a questback in Windows forms (VB). I've succesfully setup the MySQL-database, and made connection with everything needed. I've also manage to populate a DataTable called tblAlt for the alternatives for the question.Then I try to populate each radiobutton with rows from the DataTable.Here's what I tried:
For Each row In tblAlt.Rows
If tblAlt.Rows.IndexOf(row) = 0 Thenof the table).
[code]....
View 1 Replies
Oct 30, 2011
How do you pass one radiobutton from form 2 to form 3? Iv tried:
Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Form2.rbtnPatterned.Checked = True Then
rbtnPatterned.Show()
End If
But that doesn't work. The radiobutton selected in form 1 doesn't appear in form 2....
View 5 Replies
Jun 28, 2010
Is it possible to use CheckBoxes to act as RadioButtons for Yes or No options?
View 6 Replies
Jun 29, 2010
Is there any way to use RadioButtons without any GroupBox or Panel or anything else?
View 39 Replies
Apr 10, 2012
I have an assignment to create a website that people can use to make dinner reservations. We are using Visual Basic code for the forms. It's supposed to keep running totals of each type of dinner. I'm having trouble getting the running totals to not reset to zero. I have them declared outside of the button click event. Not sure where I went wrong. Here's the code:
Option Strict On
Partial Class _Default
Inherits System.Web.UI.Page
[Code]....
View 3 Replies
Jan 15, 2011
I'm making a basic game in Visual Basic, and I have a form called "Level1". In Level1, you press a button, and it pops up a dialog (I made the dialog, which is just called "Dialog"). The dialog has an empty label because once you press a button in Level1, in the click event, the label text is set, along with the RadioButton text. The Label is a question such as "What is 10 x 10?" and the RadioButtons display possible answers. Below the RadioButtons, is a Submit button that the user clicks once a RadioButton is selected. The thing is, I only have one dialog box because the game has 5 levels and 9 buttons per level, so I don't want to make 45 separate dialog boxes. Is there a way I can make the Submit button click event in the click event of the first button in Level1?
Private Sub q1Btn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles q1Btn.Click
Reset() 'Setting text for label and radiobuttons to ""
'Setting text for label and radiobuttons
[code]....
View 9 Replies
Nov 22, 2011
I wanted to have one choice enabled to the user(radio box) in two Groupboxes, is that possible? Is looping the why i should do it?
Public Class Form1
Inherits System.Windows.Forms.Form
Dim version As String
[code]....
View 3 Replies
Nov 29, 2009
I have the program written and it is so close to functioning correctly, but a the end where I am trying to add the totals for the costs.
[Code]...
View 19 Replies
May 2, 2011
I have 10 Numericupdown boxes in my Form from numericupdown1 to numericupdown10. I would like to instantly display the total amount of all ten numericupdown in a Textbox (textbox1) on the form. I don't want to have to push a button to get the total value of the numericupdown boxes.
View 4 Replies
Oct 28, 2010
Can anyone possibly take a look at my code (below) and tell me what I'm doing wrong? I have been sitting here for hours trying to figure it out. I'm very new at this and I'm thoroughly confused. I am using a book for Visual Studio "Programming in Visual Basic" and I have gone through all of the tutorials and code examples and followed them exactly (at least as far as I can tell). However, whenever I run the program, I am not getting the sum of the quantities I assigned to the constants showing up in"AccessoriesTxtBx" as I'm trying to. It shows up as $0.00 even when I have checked the boxes.[code]
View 4 Replies
Jun 14, 2010
How would you take a numerical input from 10 text boxes and total it up and send it to a label. Then average the 10 numeric text boxes and send it to its own label. I am not asking for any code, I just need a hint or two to jog my memory. If this is not clear for you, I'll provide more detail.
View 1 Replies
May 5, 2009
An ADOX (Access) database has five columns. ID, Date, Category, Store, Amount paid.It is possible to specify ten different items in the Category column: Apples, Oranges, etc.
View 3 Replies
Mar 27, 2010
I am very new to Visual basic. I don't know if I even have everything in the correct order. Here's my problem. I am trying to take user input on 3 input boxes, get discount from select case and then calculate out the following. My problem is I can get the code to do a simple addition, but If I try to do any calculation at all calling the discount I get an error where the output totals to zero. I don't know if I am missing something associated with the sub getDiscount() or if there is a problem elsewhere.Ultimately this is what I want my calculation to end up as.
First calculation
Price * Entered Input * Discount = Full Discount Value
Second Calculation
Price * Entered Value - Full Discount Value = Total
[Code]...
View 2 Replies
May 1, 2009
I've been working on a class project for quite a while, and I have not been able to figure out this step on my own. What I'm trying to do is connect the totals from three forms to a fourth page where I can then tally to those totals and then add 7% sales tax on the final total on the last page (I don't think I'll have a problem with the final part of add the 7% sales tax, but I'm not completely certain how to go about moving the totals through to that final form. Also, some of my forms use radiobuttons and one uses checkmark controls. I'm going to show some of the code that I have for each page in case this will make a difference. I think I need to do something with a public variable, but I'm not sure how to title that variable, and the public variable should have sub variable sections in each form, or if one specific public variable should be placed at the beginning of each form.I had also considering using a module to connect the totals in the forms together, because someone had suggested this, but I am not familiar at all with this method.
Code form1
Option Explicit On
Option Strict On
Option Infer Off
[code]....
View 6 Replies
Mar 8, 2011
I am trying to get the totals from a datagrid, the code that I have (does not work) is:
Dim currentRow As DataGridViewRow
Dim Thetotal As Double = 0
For Each currentRow In MyFITNESSSDataGridView.Rows
[Code]....
View 2 Replies
Oct 13, 2010
this place looks pretty reliable and helpful so i thought i'd give it a shot.anyway, i'm a student looking for help. i have to write a program that calculates costs for a catering company. i have that part down, but whats stumping me is that i have to make a summary button that adds everything up into a grand total from the previous calculations and display it in a message box. displaying and calculations aren't really my issues, but getting the data to calculate is.
i have an idea of what to do i just don't know how to go about it. i know i have to store the data somewhere, but i dont' know how to keep adding it up so i can get a grand total, so i'm thinkin there needs to be something there to count.
[Code]...
View 2 Replies
Jan 12, 2010
I have developed a simple form with some checkboxes, textboxes, radiobuttons, and textboxes inside a groupbox. Initially I had all of this inside 3 tabs. I created a button to clear all selections so user can restart the process of selection if so choses. It does not work (see below). I thought it is the tabs - so I went on and removed them (by coping the groupbox - deleting the tabs and then pasting the groubox into the main form). The code still does not work. Is there a setting that I must change or something else because a created a simple form with a couple of groupboxes that had all the above mentioned and it works just fine - all of them clear. Just in my form it does not work
View 6 Replies
Feb 25, 2009
I need to display a listbox, but i want to select only one item using radiobuttons. I was looking for info about checkedlistbox, and found some routines that deleselect one item if i check another, but i think is wrong the use of checkboxes (designed to multiple selections) to select one value. Radiobuttons are more suitable for this task, but i dont know how to put the radiobuttons inside a listbox (items are variable, i retrieve that list of items from a database, and populate in run-time).
View 3 Replies
Jun 10, 2011
How can I retrieve data from a DB in Access to labels, or radiobuttons in VB.NET?
I've search and to retrieve data people usually show Datagrids.
I just need to know how to navigate in records, by the number of their position (?) and to place that data in labels/textbox or anything like that.
This is what I have by now, just the conection to the DB (sorry is in spanish)
[code]...
View 1 Replies
Mar 29, 2011
Everything in my program is working correctly so far. The only problem I have is trying to update my totals for the program. I need to show total sales, total pay, and total commission for the program by using the file and then summary key. How the program works is that you get a base pay of $250 and you get a commission rate of .15 if you reach 1000 sales. I have done running totals before but not for one with multiple functions.
Option Strict On
Public Class CommissionForm
Const QuotaInteger As Integer = 1000
Const BASEPAYInteger As Integer = 250
Const COMMISSIONRATEDecimal As Decimal = 0.15D
[Code] ......
View 1 Replies