Save The User's Recipes - Shopping Lists And Menus?

Mar 28, 2009

I am in the process of developing a Recipe Manager for myself. It will allow me or the user to add and manage their recipes, create, save, and print shopping lists and daily menus. My question is, what is the best way to save the user's recipes, shopping lists, and menus? I've thought of text files, and databases but they just don't seem right for the job.

View 1 Replies


ADVERTISEMENT

Forms :: How To Save Texts And Lists

Mar 27, 2011

I've created a software with 50 textbox and 4 lists how can I do "Save As" "Open" to restore or save them ?

View 1 Replies

VS 2010 - List(Of ).Clear() - Load Several Lists Of Codes From A Database Depending On The Import Selected By The User

Dec 29, 2011

When .Clear() is invoked, is the memory freed up that was allocated when all of the items were added? I need to load several lists of codes from a database depending on the import selected by the user. Each list of codes will be a List(Of String). My idea is that I will load only small strings into a List(Of String) along with a List(Of <class>) for the data I will be validating and manipulating. When I am done, I want all of the data from the Lists to be purged from memory. Will .Clear() take care of that or does the memory still remain allocated and have to be dumped by the OS once memory gets full? (And, incidentally, what causes the OS to decide which memory blocks to dump? FIFO concept?)

There are so many lists, I'm not sure if I just want them sitting in memory or not. Granted, the lists will just consist of a single string value for each code pulled from the database. So there won't be a ton of data, so maybe I could just load all the validation lists at the beginning of runtime and only worry about purging the data List since it will contain between 35-50 "fields" per record and there will be a couple thousand records each import that is run. I don't want my program to actually cause a hit in performance in the long run. I ultimately don't see a problem because I won't be running millions or even hundreds of thousands of records at once, but I just want to be sure.

View 10 Replies

Sorting 2 Lists Based On Only One Of The Lists?

Apr 1, 2011

I have two lists. One list is a list of names, the other list is a list of how many times each name is found in the first list noted in the database

so...
Nick
John
Jim
Jack

is the firs tlist

10
13
13
2

is the second list. Nick had 10, john 13 and so on.I want to sort the second list from large to small, but have the index for the first list still linked to the correct amount of calls.i do it this way so I can

for x = 0 to num_of_names
string = lst_name(x) & "-" & lst_count(x)
next x

View 3 Replies

VS 2010 - Creating A Program - To Secretly Save When The User Clicks On Save

Feb 7, 2011

I'm creating a program and i want it to secretly save when the user clicks on save.

In other words, i have made it so that it saves twice. Once for the user to read (like a fancy copy) and another that the program uses to open up the form.

Currently when pushed, 2 save dialog boxes come up after each other. I don't want this to happen. I want 1 to come up (the user friendly, fancy version) which is the easy part, but i also want the other 1 to save automatically and secretly without asking the user to set the destination.

View 39 Replies

Save A File In XML And Offer The User A Save Dialog?

Feb 6, 2012

Im trying to save a file in XML and offer the user a save dialog to appear so they can name the file. The file will save using a custom file extention. The problem is I keep getting off the wall suggestions and Im looking for a simple solution. Here is what I have, please only show examples using my syntax based code. Im still a bit new to Vb so posting off the wall examples

[Code]...

View 10 Replies

User Presses The Save Button To Save Data?

Feb 24, 2009

in my form i have 4 textboxes and i want all not to be empty while saving the data.I have put condition in save button,when user presses the save button to save data, to check all the textboxes not to be empty. My question is that, i want to focus to that particular textbox which is empty during saving the data.

For example: i have txt1,txt2,txt3,txt4 as textboxes in the form if txt1 is empty while saving, the focus should switch to txt1 rather user himself have to go there.

View 16 Replies

Save Application Settings But For USER But Cannot Find The User.config File

Aug 7, 2009

in vb.net i am trying to save application settings but for USER but i cannot find the user.config file

when does this file get created?

i searched my entire hardrive. i also searched the entire project.

View 2 Replies

Visual Basic Input User - Save What The User Types In The Vb Code

Jul 14, 2009

I'm trying to save what the user types in the vb code Dim user as Inputbox("") for example in a .txt file i can save the textbox and listbox but i cnt figure out how to save the inputbox i really need this to be saved the most.

View 7 Replies

Save Button Which Firstly Validates What The User Enters The Form - If The User Skips The Text Fields

Jun 11, 2011

I was developing my own project in the university so what i am stack is to have save button which firstly validates what the user enters the form. for instance if the user skips the text fields, i wanted to restrict the user to fill all the form and when he completes, the save must be accomplished.

Here's the code i was trying to put but i was having problem saying the windows.forms.etc is unable to convert the save as Boolean and something like that.

Dim success As Boolean
Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click

[CODE]...

View 5 Replies

.net - ASP.NET Shopping Cart?

Feb 7, 2011

I am in the middle of building a very simple shopping cart in asp.net with a VB backend but I am running into problems with my code. When I run my application and try to add a product to the cart I get an error message.

Object reference not set to an instance of an object. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

Line 27: Dim blnMatch As Boolean = False
Line 28:
Line 29: For Each Me.objDR In objDT.Rows
Line 30: If objDR("StockItemName") = Product Then
Line 31: objDR("Quantity") += txtQuantity.Text

I am not sure why it is doing this and was hoping that perhaps someone could take a look and offer up some advice? I have checked over my code and I cannot find anything wrong however I would take any guidence that you may have on it.

[Code]...

View 1 Replies

Shopping Cart App In VB Using Arrays?

Mar 3, 2008

I am trying to create a shopping cart in Visual Basic. I have most of it figured out. However, when I click the Add Cart button, the item will add; however, when I add a new item, it will not go to the next line to display it. It instead replaces the first item I added. For example if the user chooses 1111 for the part number and qty is 2 then clicks the Add to Cart button, the following will show in a group box below: 1111 Alarm Clock 2 $19.95 $39.90

If the person wants to add part number 2222 and qty is 2, that relating info should show up below the first entry of the Alarm clock. In my code, it's not doing that, it's just replacing the first line (alarm clock entry). However, it is keeping track of the total amount added to the cart.

Here is my code that I have done for the Add Cart button:

Private Sub xAddButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xAddButton.Click
Dim searchFor As String

[Code]......

View 4 Replies

Shopping Cart Gridview

Jul 28, 2011

I am building a shop (without payment)

i.e.

1) Select Products
2) Checkout
3) Confirmation

The selecting products screen will look like a gridview which will display.

name price quantity
Text Text Input box

So i.e. lets say I have 10 products per page so i.e. 10 quantity input boxes per gridview. And then I have 2 Buttons below my gridview i.e. Update and Checkout. Just even worrying about Update for now. How could that work i.e. would I have to check every input box in gridview for which a value was entered ?

I.e. is there any example how I can loop through gridview row check for a value which is greater than 0 or null for example and if there is a value then perform a function like [Code]

View 2 Replies

Add Running Total To Shopping Cart?

Dec 4, 2011

I've created a program that pulls item prices from a database. The problem I'm having right now is that I'd like to display a running total, as the program currently only displays the list of items and their prices.

Private Sub btnGoToCart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGoCart.Click
Me.Hide()

[Code].....

View 1 Replies

Create A Shopping Cart Application?

Apr 30, 2010

I am working on a class project and I am trying to create a shopping cart application. I need to transfer info from listboxes on 2 forms to the main form and calculate the charges for "the books." I am having a hard time writing the code to properly transfer the items and I really have no idea where to start with the calculating the charges for subtotals of the selected books.

View 3 Replies

Application Like A Shopping Cart - Global Variable?

Dec 27, 2011

My project is to create a shopping cart application. I have my main form and from there the user can go to two different forms to add books to their cart, the cart being the main form. This all works. What I can't figure out, is how to use global variables for the prices, shipping, tax and updating the total. I have places for this information to show up on the main form, and I've created a module for the calculations and prices, but I don't know how to code it to get the prices to show up in the specified areas.

View 3 Replies

Get Items To Show Up In Shopping Card But Nothing Shows Up?

Nov 11, 2011

I'm trying to get my items to show up in my shopping card but nothing shows up

View 4 Replies

Placing Items From Listbox To Shopping Cart?

Nov 14, 2011

How can I get the items in my code from my listbox which is called "selectListBox" to a shopping cart called "cartlistbox", when the add button is clicked?

Public Class MainForm
Private Sub MainForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

[Code].....

View 5 Replies

Save Data (some Text That User Type [as Password Etc]) And Save That Password On Same Location Where Is Application?

Dec 25, 2011

how to save data (for example some text that user type [as password etc]) and save that password on same location where is application. After saving I want to have also Load option so we can load saved data.

View 7 Replies

.Net Shopping Cart Session Accessible Across Different Browsers By Different Users?

Dec 1, 2011

Using following method to create Shopping Cart Session [URL]Now running locally on my machine where sessionstate mode is inProc by default, all seems to perform fine.I'm writing an application which I've just placed up on hosting provider (shared hosting environment etc). Their default sessionstate is stateserver so I had to serialise the classes to fit in with this. It's using cookies.The basket (adding,removing etc) works fine but I'm seeing some odd things happen regarding the persistency of the session.

On my local machine, if I access the site in 2 separate browsers, if I add items in IE, I can see them in Firefox when I refresh. This doesn't make any sense to me since cookies are per browser.Plus I thought that when a session was generated, its id would be unique so there is no way that one user should be able to see anothers session data (unless tabbed in same browser perhaps)Even worse, if I start adding/removing items in IE and doing likewise in Firefox, both of them show very random cart results every time you refresh the browser.

View 1 Replies

Attempting To Create Shopping Cart Remove Button?

Mar 20, 2012

Note: This code actually codes from a tutorial book I'm reading at the moment, so you can imagine this is frustrating me greatly! I'm building a basic shopping cart, using VB.NET 4, Visual Studio 2010 and MS SQL Server R2 2008. The code below is supposed to remove items from the cart, by reading a session variable, editing it to remove the appropriate ProductID and return the amending string to the session variable. It is then supposed to rebind the data to the gridview (gvCart) to refresh the data...but it seems here there is an error.

Every time I build the site in Visual Studio, it validates fine. But every time I run the site, and attempt to use the remove button it gives me the error:Incorrect syntax near ')'.ith the IDE pointing me toward the final parenthesis

Protected Sub gvCart_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles gvCart.SelectedIndexChanged
'This method is hooked to the Remove button & is removing items from the cart

[code].....

View 1 Replies

Shopping System - Selecting Print Or Audio Books

Jan 25, 2012

The user can select from either print or audio books and add to the shopping cart. The list box shows all items in the shopping cart. There is a 6%. sales tax on the total cost of the items in the shopping cart and a 2 dollars shipping charge per item in the shopping cart. to remove an item from the shopping cart, the user selects it in the list box and clicks the remove button. the subtotal, tax, shipping, an total fields should be adjusted accordingly.

To add one of the items in the list to the shopping cart, the user selects it and clicks the add book to cart button. to cancel the operation, the user clicks the cancel button. I am using a standard module to declare global variables. My file is attach I have the problem that everytime I add a new item, it will just add 2 and then I add another item and it add 2 it does not show the subtotal or the tax and shipping and the real total....

Module PriceCalcModule
'constants for Print
Public Const g_decDID_YOU_KNOW As Decimal = 11.95
Public Const g_decHISTORY_SCOTLAND As Decimal = 14.5
Public Const g_decLEARN_CALC As Decimal = 29.95
Public Const g_decFEEL_STRESS As Decimal = 18.5
[Code] .....

View 4 Replies

Know If An Array Of Lists Contains Similar Items (similar Lists)?

May 20, 2010

I know how to check whether an item exists in a list using (MyList.Contains), But I do not know how to check the whole list. For example (use one button and one richtextbox):

[Code]...

View 14 Replies

ASP.NET Populate Gridview Textfields With Values From Session Shopping Cart

Aug 5, 2011

I have a gridview as follows

<asp:GridView ID="productListTable" runat="server" DataSourceID="srcProductListPerCustomer" AutoGenerateColumns="False" AlternatingRowStyle-CssClass="tr_dark" HeaderStyle-CssClass="header_req"

[Code]....

And it actually seems to work on first instance (altho im not sure the above is a good way to do it, but the problem is when use the pagination on the gridview I get the error

Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index

On the line
Dim productId As String = productListTable.DataKeys(i).Value

why I am getting this error and also is there a better way to do it ?

View 1 Replies

Shopping Cart Sending Data From Listbox To Another On A Diferent Form

Apr 26, 2012

i havent had problems in visual basic all the ay up to this point. I have been given a shopping cart program that I must use: a MainForm, MP3From, AlbumForm, and a module

I finally got my program to send data from the listbox on my MP3Form to the listbox on my MainForm but something isnt right still. I need to be able to click an an item from the lstMP3(listbox on MP3Form) to lstShoppingCart(listbox on MainForm) multiple times without having to close the MP3Form everytime to add the items to lstShoppingCart. Here is what I got so far on my MainForm:
[code...]

This assignment makes me mad cause we have not even covered half the stuff I am having to use in this form at all this semester. If i can get a little explanation on instantiate, inheritance, and declaring and object variable and how its used to transfer data from one to the other.

View 3 Replies

Getting Program To Automatically Calculate The Subtotal Every Time An Item Is Added To The Shopping Cart List

May 1, 2012

I am working on a project for a class, and am having trouble getting my program to automatically calculate the subtotal every time an item is added to the shopping cart list. I've tried sub procedures and functions, but I can't seem to get it to work.

[Code]...

View 4 Replies

Add Menus To Projects?

Jan 28, 2010

I want to start learning how to add menus to my vb.net projects. how to code and design them.

View 4 Replies

Get Menus To Collapse?

Aug 29, 2009

The situation is that I have a menu strip on the form from which the user can select an item, which opens a sub-menu, which opens another sub-menu which contains a combo box listing some options.

Eg. File>Project>Load>combo-box control

When the item is selected in the combo box, the code executes and modifies values on the same form, but the menu system does not collapse by itself.

I have to click on the form and then the menu system collapses.

I tried setting the focus to the form, but that does not collapse the menu system.

Does anyone know how to get the menus to collapse automatically?

View 3 Replies

No Icons In Menus?

Jan 11, 2010

I was wondering if ToolStripMenus and ContextMenus support icons? (e.g having an icon next to the text), please tell me that they do because I cant find any property like that and if they don't that's a real shame :)

View 4 Replies

Context Menus For Calculator?

Feb 15, 2011

calculator similar to the Standard Windows Calculator. Your calculator should perform the same operations as the standard calculator.

I JUST WANT TO KNOW HOW MAKE Context menus

- FOR THESE Memory buttons: MC, MR, MS, M+

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved