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


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

http://social.msdn.microsoft.com/Forums/en-GB/vbgeneral/thread/2ed5331a-648a-456e-a37f-28a7aa46e1b3

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?) 


Ivan



View Complete Post


More Related Resource Links

Categories: 
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