在C#中创建库存和采购输入表格 [英] To create stock and purchase entry form in c#

查看:71
本文介绍了在C#中创建库存和采购输入表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

海,

我想为库存软件创建一个库存条目和采购条目表格.但是我不知道如何创建它.有什么想法请帮助我

问候,

Ananya

Hai,

I would like to create a Stock entry and purchase entry form for a inventory software.But i don''t know how to create this.Is there any idea please help me

With Regards,

Ananya

推荐答案

我必须假设您是一个完整的初学者,所以:

在VS中,右键单击您的项目.
选择添加... Windows窗体"
给它取一个合理的名称"UserStockEntry"或类似名称.
按确定.
现在,您可以使用适当的标签,文本框,组合框等填充表单,以使用户输入数据.
我还建议每个用户条目应该具有一个关联的Property,或者表单应该具有StockEntry类变量(如果您的代码是通过这种方式设置的),以将数据返回给调用表单.我还建议属性上的设置器应加载文本框等,这样相同的表单也可以重新用作股票编辑表单.

要显示它:
I have to assume ythat you are a complete beginner, so:

In VS, right click your project.
Select "Add...Windows Form"
Give it a sensible name "UserStockEntry" or similar.
Press OK.
You can now fill the form with the appropriate labels, text boxes, comboboxes, etc. to let the user enter the data.
I would also suggest that either each user entry should have an associated Property, or the form should have a StockEntry class variable (if your code is set up that way) to return the data to the calling form. I would also suggest that the Setters on the properties should load the textboxes etc., so the same form can be re-used as a stock edit form as well.

To display it:
UserStockEntry form = new UserStockEntry();
form.Item = "A widget";
...
if (form.ShowDialog == DialogResult.OK)
   {
   // Save the data away.
   string item = form.Item;
   ...
   }


这篇关于在C#中创建库存和采购输入表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆