473,395 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

forms collection?

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.
Aug 14 '07 #1
5 3298
Luis,

You could use the static OpenForms property on the Application class.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Luis" <la*******@avionyx.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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.

Aug 14 '07 #2
Hi,

"Luis" <la*******@avionyx.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
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.
Aug 14 '07 #3
Could you send me an example of that?
Thanks.
Also, there is no IsNumeric function equivalent in C# ?
Thanks in advanced.
Luis.
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:u6**************@TK2MSFTNGP03.phx.gbl...
Hi,

"Luis" <la*******@avionyx.comwrote in message
news:%2***************@TK2MSFTNGP06.phx.gbl...
>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.

Aug 14 '07 #4
Hi,
"Luis" <la*******@avionyx.comwrote in message
news:Ob*************@TK2MSFTNGP05.phx.gbl...
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
Aug 15 '07 #5
Hi,

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.comwrote in
message news:uR*************@TK2MSFTNGP06.phx.gbl...
Luis,

You could use the static OpenForms property on the Application class.
Nice addition :) , I had no knowledge of it

Aug 15 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mark Hannon | last post by:
I am designing a PayPal shopping cart/store for a client and have placed several of PayPal's shopping cart forms on the page to correspond with different products. Each form has a unique name...
4
by: Soryt | last post by:
Hi everyone ! 1) An example from help: "Each Form object has a Controls collection, which contains all controls on the form. You can refer to a control on a form either by implicitly or...
4
by: sparks | last post by:
OK we have it so we can use tables to define skip patterns on our forms. BUT we can only do one form. Public Function skipPattern(currentFrm As Form, Optional currentCtl As Control = Null) As...
6
by: Edwinah63 | last post by:
Hi everyone, could someone give me some thoughts on the best way to manage mdi parent and child forms? in vb6 i could scroll through the forms collection and determine which forms were...
5
by: Simon Verona | last post by:
I have an application with a menu system which creates a new thread when a menu item is selected - some of these other threads may open a form for user interaction. Before the menu system is...
15
by: Alex | last post by:
Does anybody know why VB.NET would omit the Forms collection available in previous versions versions of VB? I imagine that there must be a reason why they decided to do away with it, but I can't...
12
by: Peter Van Wilrijk | last post by:
Hi, In VB6 I have the following code ... Dim frmLink As Form Set frmLink = Forms.Add(stringformname) frmLink.Show 'wait until all data has been loaded Do Until frmLink.Loaded = 21 DoEvent
2
by: Yuk Tang | last post by:
I have created my own custom forms called baseform, inheriting normal form properties and such. Baseform is, as can be expected, the basis for the other forms in my project. I want to close all...
18
by: Jerry Boone | last post by:
I'm looking for a way to fire a public sub/function when a form is opened and closed - without using form level events. I have already done some extensive form work with instancing, looping...
21
by: MLH | last post by:
Am having trouble with the following snippet. It stops after only cycling thru open forms. There are many more than that. How to modify this to cycle thru all forms? Sub AllOpenForms() Dim...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.