I was working on a project afew months ago and I came back to it and been trying to figure out how come I cant get this to work right.I cam across this site and did not know if this is how to show it but if anyone like to help me out I added a pic. [code]
Want to make a movie rental program first part is for dvd's the other form is for blu rays(for blu-ray the price of rental is $5.00)This is what im thinking about doing on the dvd one
1. first it lets you select the movies you want new releases are $3.25 and the rest are $1.25*here i want to use check boxes for the new release and radio buttons for the rest of the moives *note: have to use one type of decision structure (if, if...else...or select cases)
2. As you select the moives it display the amount of movies selected in a label
3. now you click the rent button then
4. type in your 16 numeric numbers of your debit card (use a input box here) and * if it is a debit card and its 16 numbers long display = enter 4 number password or 4 digit pin number
5. if it is not display a message saying it must be 16 numbers long and a debit card or numeric *use error cathing and input validation
6. then let the user enter the 4 number pin for the debit card
7. if the pin is 4 numbers then display the total in a list box display total and the due date of the movie (don't know how im going to display due dates) * Note two other things i must use a procedure or a function and passing of arguments by reference or by value in procedure or fuction. "no late fees kinda like netflix" I got the part on how two diplay the total but dont know where to use the decision sturctured or the repetition structures the use ref procedure or funciton or passing arguments by ref or by val in my procedures or functions thats the only part im lost and i was thinking instead of using radio button or check boxes for the movies like selecting them i was thinking of using a drop-down combo box instead?
create an application that calculates the registration fees for a conference. The general conference registration fee is $895 per person. The is also an optional opening night dinner with a keynote address for $30 per person. additionally, the optional preconference workshops listed in table 7-16 are available.
how to start my programming for my visual basic 2008 drive in movie theater personal project. This project I decided to work on will calculate and display the money made by a drive-in movie theater. I just want to make sure I started it right. This is what I started with:
Module Module1 Sub Main() Dim TypeOfNight As Char
[Code].....
Aw yeah, another thing I wanted to ask is how would I do the input, output, and If statements?
I have 2 textboxes, txtStartDate.Text and txtEndDate.Text, user choose date through calendar date picker. Now I want to count the days between the two selected date and save the result in the database field totalDay(type integer), the following is my code: But when I click button and try to save it into database, I receive this error: The version of SQL Server in use does not support datatype 'time'.
i have this function and i want it 2 calculate the difference between two dates and it is suposed to return the difference in days but it it just not working
I try use datediff function to get month interval between 2 hijri dates but the function deals with the dates as Gregorian Dates so the result is not correct.
i'm making a program to calculate loan using dates, the customer borrows an item on a particular day and returns it on a given day else he would have to pay a certain amount of fine per day, which starts from the date of return if the user returns the item 1 day after the Date of Return, he pays a fine of 50pence if the user returns the item 3 days after the Date of Return, he pays a fine of 25pence per day if the user returns the item 10 days after the Date of Return, he pays a fine of 10pence per day and if the user returns the item 30 days after the Date of Return, he pays a fine of 5pence per day i did something like this, but it's not producing the required answer
Dim returned As Date Dim due As Double Dim fine As Double
I am attempting to calculate the number of months between 2 dates in vb 2008. Effectively subtracting a date in the past from the current date and then manipulating it to the number of months between the two.
I have done this in VB 6 previously, but can't seem to do it in vb2008.
In VB2005 I am trying to calculate the number of business days between two dates. I must also account for U.S. holidays (New Year's Day, Martin Luther King Day, Memorial Day, Independence Day, Labor Day, Veterans Day, Thanksgiving Day/Friday after, Christmas Day). If a holiday falls on a Saturday, then the prior day (Friday) is assumed to be a holiday. Likewise, if the holiday falls on a Sunday then the following day (Monday) is assumed to be a holiday.
How do I calculate the difference between two dates to display as a number in days?I have 2 text boxes (txtHStart_Date & txtHEnd_Date) I have used an Ajax Calendar Extender to enter the dates in each of these text boxes.I would like to get the difference between these two dates to show in a seperate text box (txtNoOfDays)
I've seen the timespan function but can seem to get this to work. I'm not to sure how to declare the text boxes as the dates I would the calculation to be made from
Code:
Dim D1 As Date Dim D2 As Date Dim ts As New TimeSpan D1 = txtHStart_Date.Text D2 = txtHEnd_Date.Text ts = D2 - D1
But I know this isn't right. I also don't know how to get it to display in the 3rd TextBox.
Before I build my own and after looking for quite a while (to no avai) does any one know of a function that will return the dates of a recurrence.
For instance:
- The recurrence might be the first Monday of each month.
- The second week of each month.
So what I want is to pass the recurrence information to the function and it will return in an array all the dates that are applicable.I've looked at some other topics here but none are as comprehensive as what I need.
I'm in the need to fill a FlowLayoutPanel with about ten flashmovieplayer activex, but this not the trouble...
The trouble is that i'd like to load each flashmovieplayer movie path (with the commands movie or loadmovie) in the backgroundthread running and not in the form thread...
i'm having a problem in my project. what i want was if a user chooses to rent a computer for 15 mins, when there's a minute left in his time, a msgbox will appear as notice to the admin and user as well that his time will soon expire. i have this code running but it shows about nine messageboxes. how can i make it to just one messagebox?
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick TextBox2.Text = Format(Date.Now, "hh:mm:ss tt")
I am new to VB. I use Visual Studio 2010. I got most of my rental program to work, but I am having trouble with the easy part. I can't get the driver's license textbox to display on the bottom in the summary section.
I have a project that is used as management for a YouthFootball Team. Part of this is adding training fees and keeping track of who has, and has not paid.This part of the project is adding the fees to the relevant textfile.Textfile - Trainingfees.txt
Each line looks like - player name|number of sessions attended|amount paid I have a form with a DataGridView. Each row is populated with: Checkbox Column, Player name in textbox column, blank textbox coloumn The user then ticks who attended the training and how much money they paid in that session.
I then have this code to loop through the DataGridview and add call a separate function that adds the relevant information to textfiles.
So i have a program that is supposed to display charges for snowboard fees with and without boots. The charges are 20 for without and 30 with, and i have already declared them as constants. I have inputs for how many boards the user has.
My question is how do i create a summary to indicate the total number of snowboards w/ and w/o boots, total charges and average per customer.
how can i calculate the registration fees for a conference?
the general conference registration fe is $895 per person. There is also an optional open night dinner with a key note address for $30
fee introducion to E-Commerce $295 The future of the web $295 Advance Visual Basic $395 Network Security $395
the application should have to forms...which i ready made...
when the user clicks the select conferece button the form shown which i made should apper<<<i got that part done =)
. the user cannot register for the optional events, however without selectiing a conference registration of $895 ..when the close button is clicked this form should be removed from the screen and the total registration fee should apper on the main form<<<<<<< this one is the one i need to do
create an application that calculates the registration fees for a conference. The general conference registration fee is $895 per person. The is also an optional opening night dinner with a keynote address for $30 per person. additionally, the optional preconference workshops listed in table 7-16 are available. [code] When the user clicks the select conference options button, it should display the conference option form the conference options allows the user to select the regular conference registration, the optional opening night dinner, and an optional preconference workshop.(the user cannot register for the optional events, however, without selecting the conference registration of $895.) when the close button is clicked the conference form should be removed form the screen and the total should apper on the main form. [code]
I'm using two datetimepicker controls to set the start and end dates for a range of dates I'm searching for.I want to make sure that the start date selected is not greater than the end date. This code works, but it runs the messagebox prompt twice for some reason. I've tried to ignore it from doing this, but it's not working. Can someone tell me what's wrong?
Private Sub dtpStart_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles dtpStart.ValueChanged
I am trying to calculate the number of years for my calculate age event handler, however i am apparently missing a method or whatnot because im trying to calculate the age , can anyone suggest help on this. I need to subtract years to get my age but when i try the birthdate.Subtract (currentDate) method i get an error about not able to convert from LONG?
So below is what I have.
Private Sub btnCalculateAge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateAge.Click Dim currentDate As Date Dim BirthDate As Date Dim Age As Long