cannot implicitly convert type void to string.. Below one. So, please anyone can help me how to convertor resolve this issue from void to string here.
public static string result1;
public static string getcomparedata1(string a,string b)
{
form1 TC=new Form1();
result1 =TC.AutomateSourceToTargetStripMenuItem_Click();
return result1;
}

Jignesh TrivediRank #16 · 50.3K reputationPosted Oct 3, 2016, 4:25 AM EDT
ketan borsdiyaRank #2,258 · 624 reputationPosted Oct 3, 2016, 3:49 AM EDT
Satya Narayana24 reputationPosted Oct 3, 2016, 10:14 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Oct 3, 2016, 7:31 PM EDT
Satya Narayana24 reputationPosted Oct 3, 2016, 10:30 PM EDT
Satya Narayana24 reputationPosted Oct 3, 2016, 10:32 PM EDT