Help Needed, stuck on assignment. RRS feed

  • Question

  •      Hello I'm a noob to Visual Basic Programming. I'm currently a college student almost done with an 8 week Visual Basic course and need some help immediately.The teacher has not shown any instruction on this assignment and many people in the class are stuck on this assignment as well. I have already started the display, but I need information on how to get the arrays in structure. Below are the images on what it is supposed to look like. I have populated the list box with the book titles using the top right click on the list box add strings method. Is that how I should start? Any help would be appreciated. I have done past assignments but none relate to this one.

    Adapted from Introduction to Programming Using Visual Basic 2012, 9/E, David I. Schneider.


    Inventory Control                                                                                                                

    Write a menu-driven multiform inventory program for a bookstore with data saved in a text file.  Each record of the text file should consist of five fields – title, author, category, wholesale price, and number in stock. (The two categories are fiction and non-fiction.)  At any time, the program should display the titles of the books in stock in a listbox.  The user should have the option of displaying either all titles or just those in one of the two categories.  The user should be able to add a new book, delete a book, or alter any of the fields of a book in stock.  The adding and editing processes use the second form, frmDetails.  At any time, the user should be able to calculate the total value of all books, or the total value of the books in either category.  The menu item File contains the two second-level menu items Save and Exit.  The menu items Display and Values each contain the three second-level menu items All, Fiction, and Nonfiction.  (Note: Store the data about the books in an array of structures.)







    Helpful Hints:

    1. The text file, Books.txt. is included in your Instructions folder and should be stored in your project’s bin\debug folder.
    2. You will need only two forms (frmInventory and frmDetails).
    3. All functionality is menu-driven on frmInventory.  Note: Make sure a book is selected in the listbox before allowing the user to select Update from the Book menu.
    4. Use appropriate naming conventions for controls and provide good internal documentation.


    Thursday, February 20, 2014 1:02 AM

All replies

  • Seems quite enough to create a solution. Obviously a real solution would need plenty of user input, but for a simple exercise there's quite enough data here to create a solution.

    Any step by step or VB.Net intro book will have everything you need for this program.

    However this forum is for VBA, the macro language of Microsoft Office programs. You should have a go at creating your forms in VB.Net (I presume?) then post on a VB.Net forum when you get stuck.

    Rod Gill
    Author of the one and only Project VBA Book

    Thursday, February 20, 2014 2:48 AM