winforms - C# UserControl - A circular control referrence has been made -


i want access fdtlc.controls instead of fdtlc.flpflightlist.controls

any appreciated.

public partial class flightdetaillistcontrol : usercontrol {     public controlcollection controls //error circular control referrence has been made     {                 {             return flpflightlist.controls; // flpflightlist flowlayoutpanel         }     }       public flightdetaillistcontrol()     {         initializecomponent();     } } 

flightdetaillistcontrol , flowlayoutpanel both controls, both have controllcollection named controls inherited usercontrol. you'll have pick name property in flightdetaillistcontrol.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -