Click here to Skip to main content
15,917,321 members
Home / Discussions / C#
   

C#

 
AnswerRe: Output type of Class Library cannot be started directly Pin
#realJSOP23-May-10 9:58
professional#realJSOP23-May-10 9:58 
GeneralRe: Output type of Class Library cannot be started directly Pin
tan_chin23-May-10 10:28
tan_chin23-May-10 10:28 
GeneralRe: Output type of Class Library cannot be started directly Pin
Dave Kreskowiak23-May-10 18:26
mveDave Kreskowiak23-May-10 18:26 
AnswerRe: Output type of Class Library cannot be started directly Pin
Pete O'Hanlon23-May-10 10:00
mvePete O'Hanlon23-May-10 10:00 
GeneralRe: Output type of Class Library cannot be started directly Pin
tan_chin23-May-10 10:29
tan_chin23-May-10 10:29 
QuestionExcel number of rows Pin
gmhanna23-May-10 7:37
gmhanna23-May-10 7:37 
AnswerRe: Excel number of rows Pin
Abhinav S23-May-10 7:42
Abhinav S23-May-10 7:42 
QuestionArraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM23-May-10 7:23
PDTUM23-May-10 7:23 
Good Morning,

I am trying to pass some information to a new page, create a string array, and then use that information in additional code in the application. It seems to work fine until the last step, where the array values seem to disappear (goes null). Somewhere between when the new window closes and I am returned to the original code, I lose the information. I have detailed the process in the code below. Please let me know where I am making my mistake. Thank you in advance for your help, Pat

        //Constructor from the Where page
        public frmMain(ArrayList isChecked)
        {
            InitializeComponent();

            this.checkedNames = isChecked; //This works perfect to here.
            //The code then returns to close the window and then comes back
            //to the scipt below
        }

//******* This is where the code starts *********


private void buttonWhere_Click(object sender, EventArgs e)
        {
            for (int iItem = 0; iItem <= listViewColumns.Items.Count - 1; iItem++)
            {
                colNames.Add(listViewColumns.Items[iItem].SubItems[0].Text);
            }

            //Send the column names to the new window page for selection in a check list box
            Where w = new Where(colNames); 
            w.ShowDialog();
        
            //Page then goes to the windows page and the returns to the constuctor where the values 
            //have transfered correctly and propogated the Arraylist checkedNames correctly!  The action then 
            //returns to the window page to close it and then comes back to this point. 

            //Return from the window page starts here
            foreach (string name in checkedNames)
            {
                //At this point, the checkedNames Code has turned to null.  It seems to have happened after the 
                //window page was closed.  If that is the case, how do I get the values from that to this page
                //so I can use the selected values in the code!!
            }
        }

AnswerRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
Abhinav S23-May-10 7:38
Abhinav S23-May-10 7:38 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM23-May-10 8:28
PDTUM23-May-10 8:28 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
OriginalGriff23-May-10 9:05
mveOriginalGriff23-May-10 9:05 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
OriginalGriff23-May-10 9:08
mveOriginalGriff23-May-10 9:08 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM23-May-10 9:16
PDTUM23-May-10 9:16 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM23-May-10 16:44
PDTUM23-May-10 16:44 
GeneralRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
OriginalGriff23-May-10 23:22
mveOriginalGriff23-May-10 23:22 
AnswerRe: Arraylist Goes Null after Passing information back to Main Page from Window. Pin
PDTUM24-May-10 9:01
PDTUM24-May-10 9:01 
QuestionParsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
glitteringsound23-May-10 4:30
glitteringsound23-May-10 4:30 
AnswerRe: Parsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
Luc Pattyn23-May-10 5:07
sitebuilderLuc Pattyn23-May-10 5:07 
AnswerRe: Parsing plain Win32 PE File (Exe/DLL) in C#.NET Pin
Dave Kreskowiak23-May-10 18:22
mveDave Kreskowiak23-May-10 18:22 
Questionlistview last sorting [modified] Pin
teknolog12323-May-10 4:02
teknolog12323-May-10 4:02 
AnswerRe: listview last sorting Pin
Dr.Walt Fair, PE23-May-10 4:52
professionalDr.Walt Fair, PE23-May-10 4:52 
AnswerRe: listview last sorting Pin
Abhinav S23-May-10 4:59
Abhinav S23-May-10 4:59 
Questiondatabase connection problems about C# ,unable to connect database Pin
Make Up Forever23-May-10 2:34
Make Up Forever23-May-10 2:34 
AnswerRe: database connection problems about C# ,unable to connect database Pin
Abhinav S23-May-10 2:35
Abhinav S23-May-10 2:35 
AnswerRe: database connection problems about C# ,unable to connect database Pin
Luc Pattyn23-May-10 2:38
sitebuilderLuc Pattyn23-May-10 2:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.