473,837 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Back from Application.Run to place where was is called

In thread i've got something like this

Application.Run (new Form());

But programm shows Form and waits for events.

Is there any solution to back from Form()? whithout Application.Exi t or
Application.Exi tThread ?

cube
Jul 19 '05 #1
2 2136
Why would you be using application.run if you don't want a standard message
pump?

in your code just create a new instance of the form and then call
form.show(). then the current thread will continue on while the form goes
off on its own. But if your current thread ever ends, your app may exit and
take the open forms with it.

I'd suggest creating a separate thread before app.run to put background work
in.

-- russ

"cube" <ch******@poczt a.onet.pl> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
In thread i've got something like this

Application.Run (new Form());

But programm shows Form and waits for events.

Is there any solution to back from Form()? whithout Application.Exi t or
Application.Exi tThread ?

cube

Jul 19 '05 #2
You could listen for the Application.Idl e event, which will be fired once
your form has been shown and there's no further processing to be done.

--

Tim Dawson
"Russ Bishop" <nowhere> wrote in message
news:e4******** ******@tk2msftn gp13.phx.gbl...
Why would you be using application.run if you don't want a standard message pump?

in your code just create a new instance of the form and then call
form.show(). then the current thread will continue on while the form goes
off on its own. But if your current thread ever ends, your app may exit and take the open forms with it.

I'd suggest creating a separate thread before app.run to put background work in.

-- russ

"cube" <ch******@poczt a.onet.pl> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
In thread i've got something like this

Application.Run (new Form());

But programm shows Form and waits for events.

Is there any solution to back from Form()? whithout Application.Exi t or
Application.Exi tThread ?

cube


Jul 19 '05 #3

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

Similar topics

2
335
by: cube | last post by:
In thread i've got something like this Application.Run(new Form()); But programm shows Form and waits for events. Is there any solution to back from Form()? whithout Application.Exit or Application.ExitThread ? cube
27
2051
by: Mike MacSween | last post by:
Some of my users are getting 'Disk or Network Errors'. I've raised it with the network admins, they're looking into it. In the meantime... My 'standard' error handlers logs errors to a table in the shared backend. Nice. Unless the error is cause by the above. The error handler in the logging procedure doesn't attempt to log errors there, as the most likely cause of an error in the logging procedure is loss of connectivity. But this...
2
3361
by: VinDotNet | last post by:
Here's the Scenario I am facing: I've got a winform managed c++ client which connects to my managed COM+ server application (by making createinstance, then typecasting the object to an interface, then calling methods over it). This COM+ server application is from a C# dll that has references to Interop dlls (com type libraries written in unmanaged c++) and MC++ wrappers over unmanaged c++ code. I've got object pooling enabled with (Min : 0...
4
3262
by: Bratislav Jevtic | last post by:
hi, ASP.NET, framework 1.0, patch 2, Windows 2000 server is this possible: from server side to say "go back" to browser? ------------------- scenario: I've got some page with a list. When one clicks some button goes to "detail" page - for to add/update data. That form may have number of postbacks. On
9
1397
by: DJ Tuneman | last post by:
I've noticed that if I enable the "Application Framework" in the project for a Windows app, there's a bug when the programs load and I didn't even notice it until lately. If you click the "Show Desktop" icon on the task bar in Windows XP just prior to running the application, the application loads, shows the splash screen and then minimizes itself leaving the task bar item flashing orange. If you use the "Show Desktop" to minimize all...
3
1825
by: John Phelan-Cummings | last post by:
I have a front-end application called, “inbusiness.mdb” and three back-ends databases called, “inbusinessClient_be.mdb”, “inbusinessFund_be.mdb”, and, “inbusiness_be”. I created three back-ends for the potential intensive use of certain areas of the front-end application to their back-end tables by certain type of organizations. With the code below, (used to make future front-end updates
7
4317
by: Jay | last post by:
In my C# code, I'm attempting to display a message box then quit the win form application I'm writing if a certain type of error occurs when the application starts up. In the main form's constructor - FormMain() - if this error occurs, I display a message box then call Application.Exit(). The problem is that I also need to have some code in my FormMain_FormClosing event handler, but this prevents Application.Exit() from quitting the...
4
2489
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code m_Token = null in order to destroy the session token when the user logs out. However, I'm finding that setting class instance to null results in no header being sent back to the client, with the result that the client actually remains with an...
10
1900
by: wael20 | last post by:
Hello, C# !!! How can i back from Application.Run to place where was is called? or, what should i do, when i must to use Application.Run( new MyMainForm() ) to run my application? so i can´t use this way: MyMainForm myForm = new MyMainForm(); myForm.ShowDialog();
0
9846
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9685
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10634
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7817
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7007
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5674
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4479
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4052
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.