forms collection?

  • Thread starter Thread starter Luis
  • Start date Start date
L

Luis

Hi, I used to work with a forms collection in VB, that with a simple for I
could go trough any open form and close it, is there any thing in C# that
could do the same thing?

Thanks in advanced

Luis.
 
Luis,

You could use the static OpenForms property on the Application class.
 
Hi,

Luis said:
Hi, I used to work with a forms collection in VB, that with a simple for I
could go trough any open form and close it, is there any thing in C# that
could do the same thing?

Nop, there is nothign like that in .net.

I had as similar escenario like two projects ago and I had to create my own
list.
 
Could you send me an example of that?
Thanks.
Also, there is no IsNumeric function equivalent in C# ?
Thanks in advanced.
Luis.
 
Hi,


Luis said:
Could you send me an example of that?

Take a look at Nicholas's suggestion, that is a new addition in 2.0 !

Also, there is no IsNumeric function equivalent in C# ?


Not really, but you can use the one from VB :) , just include the VB
namespace
 
Hi,

Nicholas Paldino said:
Luis,

You could use the static OpenForms property on the Application class.

Nice addition :) , I had no knowledge of it
 
Back
Top