Skip to content

Instantly share code, notes, and snippets.

@jgram925
jgram925 / C# Winform - Calling a form function from another form.md
Last active October 19, 2023 16:21
C# Winform - Calling a form function from another form.md
public partial class MainForm : Form
{        
    public void refreshInventoryDGV()
    {
        // function that will be used in other form
    }
    
    private void addButton_Click(object sender, EventArgs e)
    {

// need to pass "this" form instance to other form