我可以获取textbox_name text和listbox_order项目在另一行列表框上正确显示
我有3个列表框,ListBox_Menu是单击按钮(主菜,饮料和侧面)首先显示项目的地方,然后添加项目以订购您从listbox_menu中选择您的项目,然后单击添加订单以订购它出现在listbox_order中。一旦准备好的客户订单就从那里开始,提交按钮将打印出客户名称(TextBox_name)和ListBox_order中的所有项目,并将其全部显示为一行。
我只是难以弄清楚如何做到这一点,如果有人可以提供帮助。
I have 3 list boxes, the listBox_menu is where the items are first displayed if buttons (entrees, drinks, and sides) are clicked, then to add the items to order you select your item from the listBox_menu and click add to order to have it appear in the listBox_order. From there once the customer order is ready to be made the submit button will print out the customers name (textBox_name) and all the items in the listBox_order, and display it all in one line.
I'm just having trouble figuring out how to do that, if anyone could please help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先定义两个全局变量,然后使用
calculateTotAlcost
函数(我定义了)。我的答案已更新。
输出(在
Visual Studio 2017
,.NET框架4.5.2
中测试):这些是我的代码:
First define two global variables, then use the
CalculateTotalCost
function (which I defined).My answer has been updated.
Output (tested in
Visual Studio 2017
,.Net Framework 4.5.2
):These are my codes: