It took me longer to code, but what I ended up doing is to make array's where values for the price could be placed. That way, the comboboxes selectedindex value is that same as the price in the array (0, 1, 2, 3, 4...etc)
I get htis error:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot create a child list for field Table1.
What does it mean by a child list?
okay, I made the change, but the valumember line still gives me trouble:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Could not bind to the new display member.
if I comment out the valumember line, it will run...
yes, that is right...
with teh code that I had posted above where I populated using the if..ElseIF..end, can I add the price in there (invisible) and when the selected index changes, copy the price to the txtbox? I know it isn't accessing the database, but I think it would theoretically work...
I get htis error:
An unhandled exception of type 'System.ArgumentException' occurred in system.windows.forms.dll
Additional information: Cannot create a child list for field menu.
I am not sure how to bind it via code, but I am populating the comboboxes like this:
Do While MenuReader.Read()
ItemName = MenuReader.GetString(0)
ItemCategory = MenuReader.GetString(1)
If MenuReader.GetString(1) = "Beverage" Then...
Ok, here is what I have so far, I am a little confused by what you mean though.
http://www.static-thought.net/TempStuff/WindowsApplication1.zip
The program runs, loads the Items into the combo boxes fine.
What I need to do is have the user select an item in a combo box, and then have...
Ok, here is my problem. I have a form with 4 comboboxes. the comboboxed are filled with items in 4 categories from a database. What I need to to is that when a user makes a selection from the combobox(the item's selectedindex.changed), I want it to go back to the database and pull the price for...
Hi! I am trying to use a sub to list controls in a form. The form has controls on it as well as in a groupbox. I am doing this using a sub command
I have gotten it to list all the controls in the form as well as the groupbox, but searately. My book says that each control has a controls count...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.