Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6367903
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:36:29+00:00 2026-05-25T00:36:29+00:00

I have made this program and I dont know how to make it run.

  • 0

I have made this program and I dont know how to make it run. I usualy run my methods inside the 2 big methods that I have button1_Click (private void button1_Click(object sender, EventArgs e)) and button2_Click (private void button2_Click(object sender, EventArgs e)).

I write this.Lista(); in the button1_Click method and it gives me the error: No overload for method ‘Lista’ takes 0 arguments.

public void Lista(object sender, EventArgs e)
{
    string[] col2 = new string[dataGridView1.Rows.Count];

    for (int i = 0; i < dataGridView1.Rows.Count; i++)

            if (col2[i] == "Browse From File...")
            {
                DialogResult result2 = openFileDialog2.ShowDialog();
                if (result2 == DialogResult.OK)
                {
                   // filename = openFileDialog1.FileName;
                }
}
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T00:36:30+00:00Added an answer on May 25, 2026 at 12:36 am

    The first line of your code, public void Lista(object sender, EventArgs e) states that the method expects the parameters in the brackets.

    So you should remove the parameters from Lista(object sender, EventArgs e) (because i see you don’t use them in the method anyway)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi have made this function which is made to replicate an error that I
This is a C++ class that I have made with n number of pointers.
Hi i have made a simple program that plays a video file, i used
I have made a program that continuously monitors a log file. But I don't
I have a python program that is essentailly made up of turtle graphics, and
I have made a program that allows users to draw lines onto a picturebox
My C++ is a little rusty but I have made a program that reverses
I made a program on Android. But this is my thesis and I have
OK, I was just fooling around in my spare time and have made this
I have made some progress with the DataList and UserControl this morning but I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.