© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
144 replies
Gijs

❔ winforms storage system (beginner)

I'm new to winforms and for school I have to make a storage system. I'm completly done the only thing that doesn't work is the selling of shoes, I have no idea how to implement this.

I use a datagridview to show the storage, the person selling has a textbox and a button where they can first put the number in the textbox and then click the button to remove x amount of shoes

this is my code:
Public mwVoorraad()
        {

            InitializeComponent();
            FillDataGrid();
           
        }
        public void FillDataGrid()
        {
            dt.Rows.Clear();
            dt.Columns.Clear();
            dt.Columns.Add("Merk");
            dt.Columns.Add("Type");
            dt.Columns.Add("Maat");
            dt.Columns.Add("Kleur");
            dt.Columns.Add("Prijs");
            dt.Columns.Add("Aantal");

            foreach (string[] schoen in voorraad.schoenenvoorraad)
            {
                dt.Rows.Add(schoen);
            }
            dgvAdmin.DataSource = dt;
        }

        private void btVerkoop_Click(object sender, EventArgs e)
        {
           
        }

        private void btBackToMenu_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
Public mwVoorraad()
        {

            InitializeComponent();
            FillDataGrid();
           
        }
        public void FillDataGrid()
        {
            dt.Rows.Clear();
            dt.Columns.Clear();
            dt.Columns.Add("Merk");
            dt.Columns.Add("Type");
            dt.Columns.Add("Maat");
            dt.Columns.Add("Kleur");
            dt.Columns.Add("Prijs");
            dt.Columns.Add("Aantal");

            foreach (string[] schoen in voorraad.schoenenvoorraad)
            {
                dt.Rows.Add(schoen);
            }
            dgvAdmin.DataSource = dt;
        }

        private void btVerkoop_Click(object sender, EventArgs e)
        {
           
        }

        private void btBackToMenu_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}


if there is anything else you spot wrong with the code please let me know!
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ WinForms beginner Issue
C#CC# / help
4y ago
WinForms
C#CC# / help
2y ago
✅ Winforms
C#CC# / help
3y ago
❔ ✅ Winforms
C#CC# / help
3y ago
Next page