472,789 Members | 856 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Another Form1_Load function?

Joe
Is there another Form1_Load function?

I need to call a function to exit but I want to have it called right after
the User interface have been loaded and appeared on screen. Right now the
Load function doesn't load the User interface to be viewable and the code I
call the exit function in the load function doesn't really help in my cause.

I like to call exit right after the form has been loaded, is there such a
function?
Feb 5 '06 #1
4 2269
Joe,

I'm kind of confused why you want to exit the form right after it loads.
What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <jo*******@yahoo.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
Is there another Form1_Load function?

I need to call a function to exit but I want to have it called right after
the User interface have been loaded and appeared on screen. Right now
the
Load function doesn't load the User interface to be viewable and the code
I
call the exit function in the load function doesn't really help in my
cause.

I like to call exit right after the form has been loaded, is there such a
function?

Feb 5 '06 #2
Joe
I like the program to be called by the taskmanager. Onces it called, it
will do something. And then exit. Of course I like to see the UI while its
doing the tasks.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP15.phx.gbl...
Joe,

I'm kind of confused why you want to exit the form right after it
loads.
What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <jo*******@yahoo.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
Is there another Form1_Load function?

I need to call a function to exit but I want to have it called right
after
the User interface have been loaded and appeared on screen. Right now
the
Load function doesn't load the User interface to be viewable and the code
I
call the exit function in the load function doesn't really help in my
cause.

I like to call exit right after the form has been loaded, is there such a
function?


Feb 5 '06 #3
Joe wrote:
I like the program to be called by the taskmanager. Onces it called, it
will do something. And then exit. Of course I like to see the UI while its [The program called by task manager doesn't exit right away unless you
close it, it seems pretty confusing to me . I know you want to hoop up
some events like Form_PostUnload().]
doing the tasks.
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP15.phx.gbl...
Joe,

I'm kind of confused why you want to exit the form right after it
loads.
What are you trying to do?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <jo*******@yahoo.com> wrote in message
news:%2*****************@tk2msftngp13.phx.gbl...
Is there another Form1_Load function?

I need to call a function to exit but I want to have it called right
after
the User interface have been loaded and appeared on screen. Right now
the
Load function doesn't load the User interface to be viewable and the code
I
call the exit function in the load function doesn't really help in my
cause.

I like to call exit right after the form has been loaded, is there such a
function?


Feb 5 '06 #4
Joe <jo*******@yahoo.com> wrote:
I like the program to be called by the taskmanager. Onces it called, it
will do something. And then exit. Of course I like to see the UI while its
doing the tasks.


It sounds like you should be creating a new thread when the app is
loaded, updating the UI in a thread-safe way using
Control.Invoke/BeginInvoke, and then exiting the application
afterwards.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Feb 5 '06 #5

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

Similar topics

4
by: David Miller | last post by:
I have a form1.cs file where I am trying to call a sorting function from a SortingAlgorithms.cs file. They are part of the same solution, but even when I make the SelectionSort algorithm public...
17
by: ZorpiedoMan | last post by:
Why Doesn't THIS work: ----------------------------------------------------------- A Windows Form has three controls: TextBox1 BindButton ShowTextButton ChangeTextButton Code:
4
by: tshad | last post by:
I just started working with VS.net 2003 and am trying to get a Web Service running. I got it working fine in VB.Net, but I can't seem to get it to go to the Form_Load handler to call the service. ...
1
by: Andrew E Chapman | last post by:
I would like to retrieve properties such as position and size of another application running at the same time as my .NET application. The other application may or may not be .NET. I understand how...
2
by: Carla Simeoni | last post by:
In general I have two procedures which are called at the beginning of a Form: Form1() { InitializeComponent(); ..... } and Form1_Load(); What is the difference ?
10
by: Paul E Collins | last post by:
I want to fill an ImageList with bitmaps for a ListView from another thread, because it's a time-consuming process. I expect the ListViewItems' images to "load" one by one, as in a Web browser. ...
0
by: redAllison21 | last post by:
what i have is a folder that has over 1000 pdf's inside it. I also have a program that runs a querey in SAP and returns a text file with certain pdfs that need to be copied into another folder to be...
0
by: =?Utf-8?B?Q2hyaXMgSGxhZGU=?= | last post by:
I have a file that is residing on a different domain than my program. My program needs to open up that file. The issue is that I somehow need to provide the username and password for the domain. ...
7
by: MyMarlboro | last post by:
public Form1() { InitializeComponent(); // some statements } private void Form1_Load(object sender, EventArgs e) {
0
by: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.