473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Depreciation Calculator using SLN/SYD To be updated in ListView

Help Please, I am taking a beginners VB.NET class and my next
assignment making a Depreciation Calculator. I am suppose to use the
built in functions SLN() and SYD() to perform the calus, option
buttons to specify the deprec method, combo box to specify life. Then
I am suppose to display the depreciation schedule in ListView.

I am having a hard time understanding how to tie the ListView with the
actual calulation and make the columns and rows populate with the
correct info. I think I am missing something as this can't be this
hard, but my brain is begging to differ. Also, the book I am using is
not very helpful in their examples, so if anyone could give me an idea
how I am suppose to set this type of project up I would be forever
grateful to them.

nejmay
Nov 20 '05 #1
2 2787
Hi Nejmay,

This sounds as a school project (I tell this for the others).
Do not say it is not, it is to obvious.

That mean we will help you however not with code.
Your problem is the Listview you say.

When you have to do something with the listview (or the treeview) than you
have to remember that it are controls which are build as trees.

You have a root and on that root you connect everytime nodes (items).
However on those nodes you can add subitems again.

That is basicly all you have to know.
(You add and item or subitem always with add or insert).

I hope this helps?

Cor
Nov 20 '05 #2
* ne****@sevenfivesevenfive.com (nejmay) scripsit:
Help Please, I am taking a beginners VB.NET class and my next
assignment making a Depreciation Calculator. I am suppose to use the
built in functions SLN() and SYD() to perform the calus, option
buttons to specify the deprec method, combo box to specify life. Then
I am suppose to display the depreciation schedule in ListView.

I am having a hard time understanding how to tie the ListView with the
actual calulation and make the columns and rows populate with the
correct info. I think I am missing something as this can't be this
hard, but my brain is begging to differ. Also, the book I am using is
not very helpful in their examples, so if anyone could give me an idea
how I am suppose to set this type of project up I would be forever
grateful to them.


I am not sure what your problem is, but did you have a close look at
the 'ListViewItem' class, its 'SubItems' properts and the ListView's
'Items' property?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: andrewcw | last post by:
I have a simple winform with the following code. But although I can read back the info, the display fails to provide the text or the cell background color changes. private void ListViewBroke()...
0
by: Art Guerra | last post by:
Any tips or information would be most appreciated! Here is my scenario simplified: I have a main application form (Form1) and on that form is a listView control. On a separate form (Form2), the...
0
by: ttan | last post by:
Hi, I have Person information from a database and populated into 4 columns in my listview which is firstname, lastname, age, height. I do some changes in age and height by selecting single row...
0
by: Jack | last post by:
Hello all, In code, I'm updating the text property of subitems in a Listview which is in Details view. This may be a dumb question, but I can't seem to find a good way to refresh the listview to...
2
by: blagdam | last post by:
I am attempting to calculate the book value of assets in a query. I calculate total depreciation of the asset using the built in Strait Line Depreciation function and then use the following...
1
by: DaRok28 | last post by:
#include <iostream> using namespace std; int main() { int i, iYears; float fInitialVal, fSalvageVal; char cAgain; do
1
by: rjoseph | last post by:
Hi guys You've really helped me out in the past but now I really need your help! Basically I have a table (name=vehicletable) with the following fields/field data: Make Model Age ...
3
by: LosLobo | last post by:
Good morning all. This is my first post to the site, and what a wonderful site this is. I wish I had come across it years ago. I am working on a database that is going to track the assets for a...
2
by: bossenb6 | last post by:
I have an assignment to calculate depreciation using straight line, double declining balance and sum of the years digits. Heres what I have so far, but I can't seem to figure it out. Please help!! ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.