Hi,
This may seem a basic question, but I want to be sure I get this right. I'm writting my first C# form and I still need to understand a few basics.
First question:
My form displays a multicolumn listview to display files that are added by the user. I've created a class for thes e files as I need to extract information from the file through external programs. When the user drops files on the listview, I create an instance of the class (which does the data extraction) and then I display a subset of the information to the user (he doesn't need to know all information from the file).
I C#, do I need to create an array member to store the instances of the file class (I will require non-displayed data when the users clicks "OK")?
Second question:
When VS creates a callback, it looks something like:
[tt] button1_Click(object sender, System.EventArgs e)[/tt]
and it works as expected, but how should I call this method from within another method? More explicitly, I do not know what to provide as event argument as in
[tt]this.button1_Click(this.button1,???)[/tt]
Thanks,
AD AUGUSTA PER ANGUSTA
Thierry
This may seem a basic question, but I want to be sure I get this right. I'm writting my first C# form and I still need to understand a few basics.
First question:
My form displays a multicolumn listview to display files that are added by the user. I've created a class for thes e files as I need to extract information from the file through external programs. When the user drops files on the listview, I create an instance of the class (which does the data extraction) and then I display a subset of the information to the user (he doesn't need to know all information from the file).
I C#, do I need to create an array member to store the instances of the file class (I will require non-displayed data when the users clicks "OK")?
Second question:
When VS creates a callback, it looks something like:
[tt] button1_Click(object sender, System.EventArgs e)[/tt]
and it works as expected, but how should I call this method from within another method? More explicitly, I do not know what to provide as event argument as in
[tt]this.button1_Click(this.button1,???)[/tt]
Thanks,
AD AUGUSTA PER ANGUSTA
Thierry