Ramesh G

Ramesh G

  • NA
  • 212
  • 65.4k

How can i access form control in class file with in Project

Dec 5 2018 1:46 AM
Dear friends,
 
i have create simple project. master page include menustrip controls. my rquirement is how can i access menustrip item name using in class file .
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. namespace TreZ  
  6. {  
  7. public class Check_value  
  8. {  
  9. masterpage mp = new masterpage();  
  10. string brand, subgroup;  
  11. public void chk_masterpagevalue()  
  12. {  
  13. brand=mp.brandMasterToolStripMenuItem.Text;  
  14. subgroupmp=mp.subgroupMasterToolStripMenuItem.Text;  
  15. }  
  16. }  
  17. }

Answers (1)