Reputation: 805
I searched lot. There are lot of questions in stackoverflow like in the above related title but those are not helpfull in my case.
1.I have a UserControlA.Design.cs page. In that page i added my two UserControls. Its called "MyUserControl1" and "MyUserControl2".
2. I have a UserControlB.Design.cs page.In that page i added my another UserControl. Its called "MyUserControl3". The MyUserControl3 having Button.I created Button click event in UserControlB.cs page
From this Button click event i have to access the MyUserControl1 from UserControlA.
Give me some idea to solve this. Thanks in advance
Edit:
In UserControlA.Design.cs page contains one user control called "MyUserControl1" It contain TreeList. In UserControlB.Design.cs page Contains one User Control called "MyUserControl2" It contain Button. Using that button i have to change the state of the datas in treelist. This is what i want to do. Thats why i need Treelist control button click function.
Upvotes: 1
Views: 303
Reputation: 46
Have you tried to expose the MyUserControl1 from UserControlA via a public property?
Upvotes: 1