forms collection?

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.
 
N

Nicholas Paldino [.NET/C# MVP]

Luis,

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

Ignacio Machin \( .NET/ C# MVP \)

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.
 
L

Luis

Could you send me an example of that?
Thanks.
Also, there is no IsNumeric function equivalent in C# ?
Thanks in advanced.
Luis.
 
I

Ignacio Machin \( .NET/ C# MVP \)

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
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Nicholas Paldino said:
Luis,

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

Nice addition :) , I had no knowledge of it
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top