CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 12 of 12

Threaded View

  1. #1
    Join Date
    Apr 2011
    Posts
    27

    Talking Working with multiple .cs documents, passing data back and forth

    [.Net 4.0]

    Hello,

    I have multiple .cs documents in the same project. The first project I was able to pass data back and forth by creating a public string function. But for some reason in my new one I am missing something. I using the same namespace name for all .cs documents.

    In MainWindow.xaml.cs I have this function:

    public string whatis_SQL()
    {
    return SQLServerName.Text;
    }


    In Backup.xaml.cs when I try to run the following it does not recognize whatis_SQL.

    string selectedSQLServer = whatis_SQL();


    Thanks!
    Last edited by DeepThought; April 27th, 2011 at 12:17 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured