User Selects Number Of Products From Datagrid / Adds Them To A Basket Using Array List

Jun 8, 2012

I am making a minor basket system which the user selects a number of products from a datagrid and it adds them to a basket using an array list (arrItemID).However on the ViewBasket form I want another datagrid however a query is formed listing the selected products. Though the datagrid seems to be empty (though the query when outputted to a text box is ideal. [code]

View 3 Replies


ADVERTISEMENT

User Selects An Excel File And The Contents Are Loaded Into A DataGrid?

Dec 20, 2011

I'm in the process of adapting a current program that I've created to automate it. **Current State***User selects an excel file and the contents are loaded into a DataGrid User can select which environment to run their query against (stage/prod) Program completes processing and updates datagrid with new values User can export datagrid to excel What I'd like to do is centralize the program on one computer and have it monitor a network folder for creation of a specific file type (*.xls or *.xlsx). If one of these is created in that folder then I want to add that file to a queue for processing. Once done processing I want to send the results as an attachment to an email to the user that created the file. After a file is processed I would like to remove it from that folder as well (into a diff folder of completed items).

[Code]...

View 8 Replies

Converting A User Generated List Box To An Array And Then Generating A User Defined Number Of Random Strings And Placing It In A Textbox?

Apr 28, 2007

I'm converting a user generated list box to an array and then generating a user defined number of random strings and placing it in a textbox.The code I have works fine as it will generate the number of random strings the user wants, except sometimes a line is blank at the top of the list but is counted as a string.

View 4 Replies

Assign A Number From A Row The User Selects In A DataGridView To A Textbox

Jul 5, 2009

I'm trying to assign a number from a row the user selects in a DataGridView to a textbox. On the dgvProducts_CellContentClick event I wish to take whats in column(6) to a textbox.

[Code]...

View 1 Replies

User Selects Option1 From The Drop Down List?

Jan 12, 2010

i have created a comboBox and want to set it so when a user selects option1 from the drop down list. a Text box populates with text for the user to see.

View 5 Replies

VS 2010 User Enters Number And Adds That Many Numbers And Totals

Apr 29, 2012

I am wanting to allow a user to enter a number and depending on what number is entered, it will allow that many entries. For example, if 5 is entered, the user has to enter 5 numbers. Those 5 numbers will then be added together.I 6 is entered, 6 total numbers will be added.I was trying to do this with a for next loop but I wasn't getting anywhere.

View 5 Replies

User Selects From Multiple Listboxes To Get A Price From A Price Array

Nov 25, 2011

I am new to vb and I am having so much trouble with this. What I need to do is this: I have a form application for winter sports equipment rental.I have a listbox filled with the equipment for the user to choose from then I have a combobox for the user to select the duration they would like to rent it. The book that I am using has no examples I can refrence and i have had no luck online either. I am posting what I have so far. However, i think I am going in the wrong direction. I have been working on this for so long that I think I have over thought it and made a mess of it. I am thinking that I need to add a new class for rentalRates then use enum of durationType and equipmentType but I am unsure how to move that way. That is using a enum, a 2d array and a parallel array? [code]

View 1 Replies

VS 2008 Will Not Need To Update Each Component Variable Of Products List When Components List Changes

Sep 21, 2010

I think (?) this is about object design, and perhaps about structural and/or creational patterns. But a bit hard to say when I only know a couple of patterns yet.[code]But... what if we INSTEAD want each Product instance only to (in some way) refer to one instance of a specific list of Components. So we wan't to save the products list to one file, and the components list to another file. Then would I build the objects the same way, or different? So let's then say we have now Class B as below. [code]

1. Will not need to update each component variable of the products list when the components list changes.

2. If the Product object shall be shown in a DataGridView, for editing properties, it seems easier to implement the selection of the component property.

Is this wrong approach? Is it suitable in some cases, and if so, when? Are there other solutions I perhaps am not aware of that would be appropriate? Is this about structural design patterns? and if so, can the alternatives above be catagorized to some pattern type? I don't really know exactly what I'm looking for.. But I think probably I'm looking to understand whether the object design will be determined by the way the objects are saved.. And if i shall save the objects by serializing to file, vs saving to a database, would I create the business objects differently?

View 4 Replies

Program - Requests A High Number And A Low Number From User - Searches Array And Finds All Elements Within Two Numbers

Jan 24, 2010

I need to write a program that requests a high number and a low number from the user, then the program searches the array and finds all elements within the two numbers. The program is used to search for past presidents, so if I type 43 for low number and 44 for high number, the program will display:

George Walker Bush
Barack Hussein Obama

I think I have an idea of how to search up to a certain point, but not to stop at a certain point....Here is the code that I have for that particular sub procedure:

Quote:

Private Sub btnDisplayRqst_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplayRqst.Click
Dim sr As IO.StreamReader = IO.File.OpenText("PRESIDENTS.TXT")

[CODE]...

View 4 Replies

XML To LINQ - Get List Of All Products From XML Doc And Put Them Into A Generics List

Jun 30, 2009

I'm basically brand new to LINQ. I've seen some examples that allow me to strong type objects using LINQ but I don't really understand them because they're in C#, which I guess lets you do different things with LINQ(I think?). [Code] I just want to get a list of all the products from the XML doc and put them into a Generics list.

View 3 Replies

Str() Adds A Space To The Number Once Its Finished

Jan 2, 2010

I'm new to VB and trying to convert numbers to a string then add the string together but VB keeps putting a space at the beginning of each number after i convert it to a string.

[Code]....

View 2 Replies

Produce A List Of Products Stcked With Their Initial Stock Levels?

Jun 19, 2011

I'm trying to make the following snippet work in VB6 but it's one error after the other. can anyone make heads or tails of this?

Basically i'm after a little proggy which will store the names of a couple of products, calculate product code (first three and last three characters of product name) produce a list of products stcked with their initial stock levels, allow info on products be search for, allow the products to be purchased.

[code]...

View 1 Replies

Shop Code - List Of Selected Products Will Be Saved In A .text File

Jul 31, 2008

I've got 2 seperated programs.

One is a program where you can select a product and select how many of them you want. Then the total price wil be displayedin a label. And the list of selected products will be saved in a .txt file.

The second program is an Edit program. The user can edit his selected products. Here he can change the total of a product.So if he had selected 1, he can change it to three or something. When the user clicks the button Save. The changes will besaved in the same .txt file and the total price will also be changed and displayed in program one.

Program one is compleet.Program two has problems and here i need your help:- the user can't make a change in the numbers, seems that the textbox is read-only or something. How to solve?- Then when i click save, the changed must be saved in the .txt ( i can't test this yet because no changes can't be made)- the total new price must be showed in program 1 (i think i programmed this well, but can you take a look)

Here is a part of my code of program 1:

CODE:

View 3 Replies

Make A New Database Where The User Selects?

Mar 5, 2012

I use vb.net express 2010. I have tried to find a way to add an EULA to my project but have not found it (nor any solutions online).

does express have the ability to add an EULA?also is there a way to get the setup file to move the database into a particular area OR have it make a new database where the user selects?

View 1 Replies

Why Datagridview Adds Additional 2 Blank Rows When The Bounded Datatable Only Adds 1 Row

Sep 20, 2011

I am using vb.net 2010. I have a datagridview whose data source is a data table. I dynamically add rows to the data table.

[Code]...

After adding the new row, m_table is correct. However, DVGCusClient not only adds this row, but also adds two additional blank rows at the bottom. I have no idea where these two blank rows come from. Why I use above code is as follows: Use a data grid view to display data. When a user clicks a row, another form is opened which allows user to search/input some data.When the user closes the form, all data is saved to a data table and shown on the data grid view.

View 1 Replies

Forms :: How To Get Value Of Item Which User Selects From ComboBox

Nov 1, 2010

I am creating the items in a combobox in my code behind. I am setting the display member and the value member. When the user makes a selection from the combo box, I need to get the value of the selected item. I have written some code, but when I step through it, it says that the selectedvalue is Nothing.

Here is the code where I am creating the items in the combo box:
Do While drReader.Read
cboTheater.Items.Add(drReader("TheaterDesc"))
cboTheater.ValueMember = CStr(drReader("TheaterID"))
cboTheater.DisplayMember = CStr(drReader("TheaterDesc"))
Loop

In the selected index change event for the combo box, I am doing the following:
Dim strTheater As String
strTheater = CStr(cboTheater.SelectedValue)
When I step thru the code, strTheater is Nothing

View 2 Replies

Forms :: User Selects A File Using An OpenFileDialog

Sep 21, 2010

I have a form on which the user selects a file using an openFileDialog. The selected filepath is then processed, which may take 10-20 seconds before the user is presented with the results.I'm finding that the once the user selects the file (clicking the OK button on the openFileDialog), the openFileDialog remains open until all of the processing going on in the background is completed. Once the processing has finished the openFileDialog disappears and the results are shown.The problem is that whilst the openFileDialog remains open on screen, it is not apparent to the user that anything is happening in the background. I do actually have a textbox which updates the user with messages showing the progress. However the openFileDialog hides the messages until it closes, essentially making the progress messages useless.What I'm trying to do is have the openFileDialog close immediately that the user selects a file. Then the processing can continue without the openFileDialog obscuring my form.

View 5 Replies

Unable To Capture The Value Of A Cell When The User Selects A Row?

Jun 12, 2011

How would you be able to Capture the Value of a Cell when the User Selects a Row?

View 7 Replies

VS 2008 - My.Settings - If When The User Selects No, Then The App Setting Is Nothing

Dec 6, 2011

I am not sure what the heck I am doing wrong. I would like if when the user selects no, then the app setting is nothing. By nothing I mean nothing, I am using "Nothing" to test but its not working it returns whatever is in the richtextbox

This is in my formclosing event

Dim msg As String = "Do you want to save your comments?"
MessageBox.Show(msg, "Save", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If DialogResult = Windows.Forms.DialogResult.Yes Then

[CODE]...

View 2 Replies

VS 2008 : Execute The Program After The User Selects It?

Aug 10, 2009

How do I make it so that after the user selects a program it gets executed?Also can I the the OpenFileDialog1 to anything else?

View 13 Replies

Have A List-box That Adds Shortcuts Of Programs And Runs Them

Jun 22, 2010

Ii it possible to have a list-box that adds shortcuts of programs and runs them

View 3 Replies

Build A Project That Lets Users Click An Item From A List Of Products (tabbed Form)?

Feb 10, 2010

Trying to build a project that lets users click an item from a list of products (tabbed form). Once an item is selected (check box) find a way to store that item.Then when the user has finished selecting items they can click a button showing what they have selected in a new form that will open.Whats the best way to store what items they select? An Array?

View 2 Replies

Change The Value Of ComboBox1 Depending On What The User Selects In ComboBox2

Nov 23, 2011

In my datagridview, I want to be able to change the value of comboBox1 depending on what the user selects in comboBox2

I had this working correctly, however if I move onto a new line in my gridview and select a different value in the second row it changes the previous row also. For instance, on Row1, if comboBox1 = A, combox2 = B

Then on Row2, if comBox1 = Y, comboBox2 = Z

However, when I change Row1, Row2 is also changed to reflect what was chosen in Row1. Is there a way I can tailor it to each specific row?

View 7 Replies

Desk App - End The Details That The User Selects And Types From The Form?

Oct 19, 2010

i am trying to design and code a simple help desk program. i would like it to send the details that the user selects and types from the form i have designed (see picture) and also to send the username, computer name, servername and a copy of the windows event log for the previous 15 minutes, to a designated email address in pretend I.T. department.

View 4 Replies

Ensure User Selects Item From A Combo Box And Listview?

Jan 4, 2011

I have a form with a drop down combo box and a list view. The user selects a date from the combo box and then they are to select an item from the list view. I want to ensure that the user has selected a date from the combo box before processing the information from the selection in the list view.

If cboYEARMONTH.SelectedItem = Nothing Then MessageBox.Show("Please Select a Year Month")

View 1 Replies

Forms :: Add Items To A Combo Box Depending On What The User Selects In The Other?

Jun 2, 2010

I have 2 combo boxes. One is in a form called subcat_selector.vb

on the button Pick Sub Catagory.click event it shows the subcat_selector form. form there, the onload event:
Dim button As DialogResult

[Code].....

View 10 Replies

Forms :: SelectedIndexChanged - Test For When The User Clicks On It And Actually Selects A Value From It?

May 27, 2010

I have a combo box and use the SelectedIndexChanged event. I noticed when I assign a value to the combo box that this event fires even though the user does not click on the control. Can you tell me how to test for when the user clicks on it and actually selects a value from it?

View 19 Replies

Populating Text Boxes When A User Selects A Company Name From The Cbo Box?

Apr 27, 2012

I am populating text boxes when a user selects a company name from the cbo box. When I make the first selection everything looks good, but when i make another selection the text boxes do not clear and repopulate with the new values. Here is the code in the selected index change event.

[Code]...

View 4 Replies

Retrieve Some Infomation From Record That A User Selects In DataGridView

Jun 14, 2012

I have a datagridview that is filled by a query in the dataabse via the DataSource property.What I want to retrieve some infomation from the record that a user selects in the DataGridView. How do I do that? i've been looking for some time now but I can;t figure it out.

View 6 Replies

Sending The Value Of Payor To The Fill Query Once The User Selects?

Sep 7, 2009

I have a field called "payor" where the user selectes either "All, Medicare, Managed care" from a drop down list. I am sending the value of payor to the Fill query once the user selects the one they want.

I have no problem with coding 'Where (payor = @payor) if the user doesn't pick ALL, but what code do I need to include ALL records if the user selects "ALL" in the where statement?

View 7 Replies







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