Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
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
Posted

1 solution

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:
C#
UserStockEntry form = new UserStockEntry();
form.Item = "A widget";
...
if (form.ShowDialog == DialogResult.OK)
   {
   // Save the data away.
   string item = form.Item;
   ...
   }
 
Share this answer
 
Comments
sariqkhan 15-Dec-12 10:45am    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900