.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Post New Web Links

MDI in C#

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :Windows Application

I was trying to detect how many MDI child forms in my main form had, as in this thread in VB.net


That worked successfully but I do not know how to do it in C#

my code for detecting it

if (this.MdiChildren.Count() =1 )
 //my code

but I get an error at the "Count" part

Error 1 'System.Array' does not contain a definition for 'Count' and no extension method 'Count' accepting a first argument of type 'System.Array' could be found (are you missing a using directive or an assembly reference?) 


View Complete Post

More Related Resource Links

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend