namespace TestApp { public partial class MainWindow :Window { } }
namespace TestApp { public partial class MainWindow { A ob = new A(); } public class A {} public class B { } }
namespace TestApp { public partial class MainWindow { init() { Exchange ob = new Exchange(); ob.set_tb(textbox1); } } public class A {} public class B {} public class Exchange : Window { TextBox tb1; // some hack to get textbox access public void set_tb(TextBox tcontrol) { tb1=tcontrol; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)