473,513 Members | 2,514 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use foreach statement in a loading form program

1 New Member
can you help me how can i use the foreach statement in a loading form program?
the scenario is this when the button in the mainwindow is clicked a window will pop out then in that window there is 3 textboxes when i double click the textbox there is another form will pop out.

and also how to use setfocus in this program...... advance thanks.....
Feb 2 '12 #1
1 1212
PsychoCoder
465 Recognized Expert Moderator Contributor
@achkishnastep why would you want to keep opening new windows like that? Almost sounds malicious to me (but that's just my opinion)
Feb 3 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1541
by: Gidi | last post by:
Hi, I'm writing a windows application and i need to check if a certain file exsits before i'm loading my MainForm. Incase the file doesn't exsit, i want to load a different form (without...
5
13651
by: ano | last post by:
I received this error when I used "ref" in foreach statement. Dictionary<string, object> oInterfaces; foreach (clsInterface vinterface in oInterfaces.Values) { func1( ref vinterface ); } ...
1
1117
by: david.kao | last post by:
Hi All: I am developing a Win form program in .NET 2 is using one of library (DLL) which was written in .NET 1. My questuion here: which runtime the DLL is running under .NET 2 or .NET 1 ? ...
2
1212
by: dkoco | last post by:
I have a C#.Net program that once a button is clicked it goes to a public class(called Tal) and gets data in a vector, then exits the class, and goes back to the main form(program). I will do this...
6
2269
by: David zha0 | last post by:
Hi, I found these doesn't work: private void button1_Click(object sender, EventArgs e) { string tmpstr = new string { "david", "bill", "mike" }; foreach (string tmp in tmpstr) {
1
5558
by: Franck | last post by:
I have a form with a loading bar as marquee so i don't need to play with the progress thing. It's just a form to show activity in other way. So what i need to do is start it at the beginning of...
3
3204
by: jmDesktop | last post by:
I have this: foreach (DataRow row in myDS.Tables.Rows) { int ctr=0; //counter for child node //create a parent node for each new row trvRetrieved.Nodes.Add(new TreeNode(myIdNumber));
2
9991
boss32178
by: boss32178 | last post by:
Ok I get this error when i try to run the web app. foreach statement cannot operte on variables of type 'object' does not contain a public definition for 'GetEnumerator' here is the code #region...
1
4991
by: Greenwood | last post by:
Hi all, I think this question should be easy for some of you guys, but I really dont know whats the equivalent, I would like to convert my For loop inot a ForEach statement, anybody familiar with...
3
3223
by: Salim Zaabi | last post by:
Hi EveryBody, Can anyone tell how do I display/show logo or picture when loading a form, NOT ON THE FORM, and it disappears after loading is complete.
0
7260
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
7162
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...
1
7101
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
5686
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5090
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3234
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3223
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
456
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.