Calculate Age Of A Person And Dispaly It In A Label
Nov 15, 2011
i need to calculate age of a person and dispaly it in a label. for example i have a textbox, with these values, 130790, from this number it should generate my age. DDMMYY
View 2 Replies
ADVERTISEMENT
Jan 2, 2012
My program has a textbox and a listview. In the list view i have added three person's name, John, Kat, Adel.
How do I make it such that when John's name is selected in list view, John's age is automatically displayed in the text box?
And when Kat's name is selected in list view, Kat's age is automatically displayed in the text box?
View 3 Replies
Jan 30, 2012
I have a Person class, which contains two public properties. I am trying to add items to it as follows.
Code:
Class frMain
Dim persons As New List(Of Person())
Private Sub frmMain_Loaded(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles MyBase.Loaded
GetInfo()
[code]....
When I try to use the Object Initializer, I get an error Error"Value of type 'Person' cannot be converted to '1-dimensional array of Person'.
View 1 Replies
May 5, 2009
I wanted to know how to make a Third FOV program in a First Person shooter game.
View 16 Replies
Feb 26, 2012
I'm using Visual Basic Express 2010. I have the prompt, the textbox and the calculate button. For the answer do I have to make a separate label for the answer in seconds and the actual response "That will take (separate label for answer) seconds" I made a click event button and assigned the following as global variables at the start of the form:
Const intSpeed As Integer = 1207
Const intTime As Integer = 3600
Then I made a click event for the button. I don't know what the formula is. Basically the user inputs a distance in the box, the calculate button tells you how long it will take for the vehicle to travel that distance in seconds.
Here's the interface: [URL]
Criteria:
Are We There Yet?
The Thrust SSC, a super fast vehicle tracked at 1207 Km per hour (750 mph) was clocked on the Black Rock desert back in 1977. Build an application that will tell people how many seconds it would take to get to their destination if they were driving the vehicle. Of course this doesn't include having to stop for stop signs, travel through school zones, or slow down for corners.
You need to include the following:
1.) Design the application with a prompt label and textbox to collect the distance from the user.
2.) A calculate time button
3.) The form must have the text property changed to read "Are we there yet?"
4.) The objects must have both the Text property and Name property changed to an appropriate value.
5.) A constant global variable should be used to represent speed of the vehicle.
6.) A constant global variable should be used for seconds (there are 3600 seconds in an hour)
8.) A local Dim variable declaration can be used within the button click to hold the distance value.
7.) Variables should be declared with the most appropriate data types.
8.) Include a "Text Changed" event to reset the time in seconds to a blank value when the user starts entering in a new distance.
9.) Comment code should be included
View 4 Replies
Apr 13, 2011
I'm trying to convert input and display in a label using a calculate button click.I need to take the input from the textbox add it to data inside a label and display it in a label (output). The data has to be validated for no negative or non numeric data. [code]Nothing is being displayed in the output label and only getting label with error msg???
View 5 Replies
Dec 16, 2011
I created button "Calculate Pay" and under this botton I created a label (lblOutput).How should I wirte in lblOutput label to display what happens after "Calculate Pay" button is being clicked?
View 3 Replies
May 13, 2012
VB code: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
[Code]...
I want to display the result of this row a & " " & b in GridView.How should i change the code to make this work properly.
View 2 Replies
Feb 1, 2009
Public Class frmStudentScores
Private Sub btnAddStudent_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnAddStudent.Click
[code]....
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 3 Replies
Apr 22, 2009
[code]...
The Form that I'm trying to get to Display as a Dialog box is AddNewStudent1 but I keep getting an error that says AddNewStudent1 is not defined.
View 12 Replies
Apr 8, 2009
I want to display in a combobox the names of the fields of a table (table is in SQL server 2005).
View 6 Replies
Feb 9, 2012
I have a DataGridView with a single column that currently displays a short list of items. When the user clicks a button to run an update, each row/cell is read and processing begins. I would like to have the selection idicator move down the rows in the DataGridView as it completes processing of each record. How can I display the iteration of the DataGridView rows while the processing is underway? A redraw of the DataGridView or something.This is a VB.net windows form, I know how to do this with AJAX I think, but how can I in a Windows form?
View 1 Replies
Oct 6, 2010
The pay rates for the project are:
a. Level 1 - $10.00
b. Level 2 - $12.00
c. Level 3 - $14.00
d. Level 4 - $16.00
e. Benefit Deduction Rate - 0.10
f. Overtime Factor - 1.5
For ease of program maintenance, all of the above rates and factors must be stored in module level constants. All references to pay rates in the program must refer to the module level constants.
When the Calculate button is clicked:
a. The value in the Hours text box must be validated to insure that it is numeric value greater than zero.
1. If the value is not valid, a message box must appear as shown below and the user must be offered the option to continue processing or quit the program.
2. If the user chooses to continue processing, the focus must be set to the Hours text box.
3. If the user chooses to quit, the program must close immediately.
b. If the value is valid, the program must calculate and display the total pay in the Total Pay label.
1. The pay rate is determined by which Job Grade radio button is checked.
2. For hours less than or equal to 40, the total pay is the hours times the pay rate.
3. For hours greater than 40, the total pay is 40 hours times the pay rate plus the hours in excess of 40 hours times the pay rate times the Overtime Factor.
4. If the Full Time radio button is selected, the total pay must be reduced by the Benefit Deduction Rate.
5. The value displayed in the Total Pay label must be formatted with a dollar sign and with two decimal
places.
6. The focus must be set to the Hours text box.
Why i get an error when i try to run this code
Code:
Also the message box, both yes and no close the program.....
View 10 Replies
Mar 30, 2009
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
[CODE]
View 7 Replies
Jan 17, 2012
I tried thiscode to display data from textbox from VB to interent ( textbox of google) but I don't know how to complete it
Dim objIE As SHDocVw.InternetExplorer
objIE = CreateObject("InternetExplorer.Application")
objIE.Navigate("http:Google.com")
[code].....
View 1 Replies
Mar 14, 2012
I am working on a class and I need to make a way to have the person using the class specify something..I think the best way would be to put an example. [code]
View 4 Replies
Aug 12, 2010
All my users can click on an image button accept one.When she hovers over the imagee it does not provide info on the status bar as if it doesn't even recognize there is a image button there.ALL the other users roll over it and the info comes up on the status bar and they can click the button and it works.What should I be looking for that one user can not access this button.There is not code specific that locks her out and the ahref links on her page work but not the image button.
View 4 Replies
Aug 28, 2011
I'd like a like to write a first person shooter, I don't want to do it from scratch, I'm wondering if there are SDK's, I plan to make my own 3D models. Maps, and of course weapons, I'm not looking for multiplayer?
[URL]
View 6 Replies
Jul 2, 2010
We are developing an application in VB.NET 2008. We break the application into smaller multiple dlls so that we can easily update the program at the customer end.We want to know that is their any way to stop the other person to use my dll in their application?i.e we want to lock the dlls such a way that the dlls will be used by us only and not anybody in their application.Also we want to block viewing of dlls code using any code reflector
View 1 Replies
Oct 5, 2011
I am still having some issues with the issue I posted last time regardin formview not updating correctly.I have managed to narraow the problem to one sub below:My issue appears to be on this line: tbl.Rows.AddAt(tbl.Rows.Count 1, row)Anytime I attempt to update a row, only the first row gets updated. Subsequent rows don't get updated. Instead, when I click "Update", the cursor moves down to the next record without updating it.When I commented out this tbl.Rows.AddAt(tbl.Rows.Count - 1, row), I can now update each and every row. After updating the row, an email goes out to the individual advising him/her about the update s/he just made. The problem is that email is getting sent to the wrong person and that's because of that one line that I just commented out.
View 1 Replies
Apr 7, 2010
I have a code its for a pc game. Basicly it scans the chat using winapi calls. I'm trying to make when I type _place ammo (a vaild type of ammo that exists in game which is located inside dim vaildammo) I want it to make sure its a valid type of ammo to be placed. I used a for each statement but It doesn't seem to work.
[code]...
View 3 Replies
Mar 24, 2012
Better Explaination of question: Is it possible to work on the same vb project at the same time?
I searched over google for help and I found a forum but it looked very complicated and I diden't feel like screw stuff p so can someone please give me a link or tell me how?
View 4 Replies
Aug 11, 2009
Okay, so, for school i have a project i need to completely program by the end of next semester. My graduation project. And it needs to be a full-blown piece of software that would be theoreticly usable for a person or company.assignment was simple:make an application, usable by a person or company, that uses databases and VB.NET
so i started brainstorming and i came up with the following:a client-server application where the server runs on the company's mainframe and it's employees (seeing as it would be an IT company or another company that would use a lot of computer files) can upload to, and download files from, where each file would have a description and additional information (extension, date,emplyees would also be able to exchange private messages so that collegues of the uploader can be notifies that the file they would need is uploaded.
in addition to that there would be an administrator (or multiple) that can overview all PM's (make sure there's no abuse of the system) and administrate the files (delete/edit/...)So really, i have no idea where to begin building this application, so i would think that if i get the interface done, i atleast have an overview of what and how i would need to code.
note: wow now i think about it this seriously sounds more like a website than an application... but still it sounds like a good idea to me and has to be done or else i would not graduate
View 5 Replies
Feb 16, 2009
I made a game, i wanna know how can i add a song in the background, while the person is playing game, or if its possible, on every level, it plays defferent song.
View 1 Replies
Aug 26, 2009
how to code the "from" portion when an email via vb.net. I could easily do "mm.From= email@domain.com"...but for this project it needs to be sent automatically depending on which user is entering the information. So I have lets say a group of 10 users, anytime a specific user sends in an update on a project form, the email is sent to the manager from the person who it's been updated from. Any suggestion? They all have specific ID's. How would I code it to where I could get the program to find them by their ID and then get their email address from their ID?
Protected Sub SendEmail()
Dim ToAddress As String = ConfigurationManager.AppSettings("AstMgr").ToString()
Dim mm As New Net.Mail.MailMessage("Engineering.Systems@exchange.nscorp.com", ToAddress)
[Code].....
View 1 Replies
Jul 2, 2009
I have problems figuring out how to separate a single person to display on my listbox.
I am currently working on an assignment called "Douglas Resort Reservation" and we are supposed to select a query from the combo box Guest Search. For example, when I select Barb Allen, I get the info to display properly, which is good. But, I still have a problem.
When I try to click my button 'Prepare Invoice', I want Barb Allen's info to be displayed in my listbox 'Invoice'. But, now I don't have that complete. I have a whole list of items generated when I load my whole thing from my Form Load event from the textfile RESORT.TXT. I get a whole list of items instead of individualized items.
My question for you is: "How can I get just ONE name and person's information to show up?" when I press the button 'Prepare Invoice'.[code]...
View 2 Replies
Aug 20, 2009
I am making a program for me and I told my friend about it and they said that they would like to test it. The only problem is that they don't have VB2008, and there seems to be no way to compile my program so that another person WITHOUT VB can use it. Does anyone have any tips, or perhaps I'm missing something? Let me know ASAP
View 2 Replies
Jan 2, 2010
I have a class named "Person" defined in the App_Code folder with Visual Web Developer 2008 Express Edition. It was working fine when I set it up the other day. Now, I get the message "BC30002: Type 'Person' is not defined" when I reference the class in my code behind page.
[Code]...
View 4 Replies
Jul 2, 2009
how to seperate a single person to display on my listbox. I am currently working on an assignment called "Douglas Resort Reservation" and we are supposed to select a query from the combo box Guest Search. For example, when I select Barb Allen, I get the info to display properly, which is good. But, I still have a problem.
When I try to click my button 'Prepare Invoice', I want Barb Allen's info to be displayed in my listbox 'Invoice'. But, now I don't have that complete. I have a whole list of items generated when I load my whole thing from my Form Load event from the textfile RESORT.TXT. I get a whole list of items instead of individualized items.
"How can I get just ONE name and person's information to show up?" when I press the button 'Prepare Invoice'.and display information like this:
Barb Allen 604 777 1234
# of Adults 3
# of kids 1
Check In 2008-12-01
[code]....
View 1 Replies
May 10, 2012
I need to connect to a SQL Server from a network drive, I'm unable to due to the security settings on the network drive and I'm unable to have these changed.Is there any other ways of connecting to this SQL Server?
View 13 Replies