Go Back   Computer Forums > General Computing > Programming
Join Computer forums Today

Thread Tools Search this Thread Display Modes
Old 05-14-2007, 08:57 PM   #1
Baseband Member
Cronodude360's Avatar
Join Date: Aug 2004
Posts: 42
Send a message via AIM to Cronodude360
Default Visual Basic.NET

I need help with a project using VB.NET.

In this program I havel create a “database” of information that a user may add to, edit, search and delete from. Choose a subject, such as a music catalog or game stats. I have to create a structure to store four different fields for each record (i.e. music title, artist, genre, location). Data should be displayed in sorted order in a listbox on the form and have a maximum of 20 records.

My program will need to have the following functions: add, search, edit, delete, save. It needs to use an array to store the data while working with it. I will need to save the data in a file. When the program starts, it should look for the file and load it into the array if it exists. It will need to write the updated data back to the file after the user is done.

Problem is, I only know enough to get the "Add" part done, and that's not even getting the information to an array!

Describing my form is simple enough...

Four list boxes (lstArtist, lstSongTitle, lstAlbum, lstGenre)
Above those four list boxes are buttons (Artist, Song Title, Album, Genre) clicking each of those is supposed to sort the listboxes respectively (i.e., clicking Artist would sort the listboxes with the Artist box being in alphabetical order)

There are textboxes beneath each list box, but again, adding the information is not the problem.

The buttons on the side, in order from top to bottom: Add, Search, Edit, Delete, Save, Help, and Exit.

Any help would be appreciated.

If water derives lucidity from stillness, how much more the faculties of the mind! The mind of the sage, being in repose, becomes the mirror of the universe, the speculum of all creation.
Cronodude360 is offline   Reply With Quote
Old 05-17-2007, 08:04 AM   #2
In Runtime
Daeva's Avatar
Join Date: Dec 2005
Posts: 407
Send a message via AIM to Daeva Send a message via MSN to Daeva Send a message via Yahoo to Daeva
Default Re: Visual Basic.NET

why don't you use a gridview control? If you created a database, then create a table in the database called categories:
category_id int primary key,
category_name varchar(25) not null

then add some records:
1 Artist
2 Song Title
3 Album
4 Genre

then, make 1 list that gets those values from the database, then have a gridview control that updates based on the category they picked from the list, and as for updating a file... do you mean to update the database? or create a "File" object and literally write a text file(which doesn't seem to make any sort of sense to me)?
I can go more in detail if you like on how to do this.
**Official Self-proclaimed glorified excessive (insert additional adjectives here) post editor/modifier.
Edit = Best feature ever
Daeva is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

All times are GMT -5. The time now is 10:20 PM.

Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0