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
Post a Comment