Hi All,
I have developed a .NEt windows form application and a class library
Namespace for Form1 - TestSetup
Namespace for Class1.cs - TestClass
I have a textbox in my Windows form application, whatever the text in the textbos I need to pass it the calss library.
So I did like this,
using TestSetup ;
Form1 form = new Form1();
string installationpath = form.installationpath;
string outputpath = installationpath;
Calling the class from the Windows form as following
TestClass sh = new TestClass();
TestClass.GenericResult result = sh.AddVPrinter(textBox1.Text, textBox1.Text);


Salman BegRank #284 · 8.8K reputationPosted Jul 29, 2020, 5:37 AM EDT
Hamid KhanRank #424 · 5.9K reputationPosted Aug 14, 2020, 7:13 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Aug 14, 2020, 11:34 PM EDT