VERY Easy C# Question
Posted on 2004-04-18
Hello, i just began playing with C#. I’m used to console C/C++ programming. I am simply wondering how I can pass a text string from one .cs form to another.cs
I have a typical login window, which consists of some textboxes, labels and buttons.
On click I want the event handler to pass the user name and password to a function in a different .cs file that is part of the project, one that holds the authenticate function logic.
I want to do something like this
private void OK_Click(object sender, System.EventArgs e)
authenticate(string username, string password)
if( username == ...etc etc )
Could some one please explain and show with a basic example how I could pass the text string.
Thanks in advance! =)