|
Hello everyone. I want to know the application startup path for C# 2.0 windows form application. One way is Application.StartupPath. Is there another way to find the application startup path?
Started by kobra on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Can-i-get-the-applications-path-in-c-in-a-console-app.
|
|
I have a winforms application in which I am using 2 Forms to display all the necessary controls. The first Form is a splash screen in which it tells the user that it it loading etc. So I am using the following code:
Application.Run( new SplashForm() )...
Started by TK on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
So either show your splash first just by using something like:
using(MySplash form = new MySplash....
I run the splash form Application.Run on your main form.
Probably you just want to close the splash form, and not send it to back.
|
|
I have an application with one form in it, and on the Load mehtod i need to hide the form.
The form will display itself when it has need to (think along the lines of a outlook 2003 style popup), but i cant for the life of me work out how to hide the form...
Started by Pondidum on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
A better paradigm is to not create an instance of the... .
Then avoid calling Show() until you need it.
Starting the form off invisible the form's Visible property to false.
To have to manage the application startup/shutdown yourself.
|
Ask your Facebook Friends
|
Hi What is the win-based application developing with C# equivalence of startup module we had in vb6.0? a static class ? or what?
Started by odiseh on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
But I must respectfully disagree....
The default startup format embodied in "Program.cs" is not, however, the only game in town startup.
Application" there is a setting called "Startup object" which can be used to set the object" is.
|
|
Is there any reason to start a GUI program (application for Windows) written in VB.NET in the Sub Main of a module rather than directly in a form?
EDIT: The program won't take any command line parameters and it will be executed as a GUI program always...
Started by ggf31416 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Later, when you're maintainingNo, if you....
This separates startup code from your form code.
Application startup code isn't related to UI, normally concerned with splash screens, checking with your application.
On that form .
|
|
I downloaded a zip of source files containing a C# project with multiple entry points / Main methods. Since I wanted to tinker around, I created another one like this in a new type/class
class MyExperiments { static void Main(String[] args) { // do something...
Started by Gishu on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The project property page to be slightly smarter about picking up the startup object, but given.
|
|
We have a little C# startup appplication that users launch to run the latest version of our main C# WinForms application from a network share. It's kind of a simplified ClickOnce arrangement (our IT folks won't allow us to use ClickOnce).
The startup ...
Started by Old Man on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Put this as the first item form is displayed in the....
It will be just a simple Form with an image running on a separate worker thread.
Would be to have your main application kill the startup application once it has finished loading.
|
|
I have checked past threads on this, and googled it but could not find an answer. I thought I remember seeing a post with a solution. I am Looking for a way to open some external databases and bypass the startup form or autoexec. Most of my dbs open with...
Answer Snippets (Read the full thread at tek-tips):
Remove the startup form value the custom commandbars....
Randy If it is a startup form try this:
CODE Dim strOriginalForm as String
Dim db as Database
Sub suggests and use the dao.opendatabase to get to the database properties.
|
|
I have a form which will open a new form when one button (form1button) is clicked. And on the child form there will be another button 'form2button'. Now if I click this form2button the new form2 should be disposed. But because the form2 object is created...
Started by Enjoy coding on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The twoYou don't need to explicitly call Dispose on the form, the garbage collector will do that for you
If you want something specific....
If the form you are closing is the startup form of your application, your application ends.
|
|
I use C# to write windows applications with the .NET framework. How can I decrease startup time for these applications? My applications feel very slow during startup and initialization, particularly when showing the initial form.
My application works ...
Started by hosseinsinohe on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
I'd give a more detailed answer, but your during this startup period, and....
You can change your startup code to defer startup tasks to a secondary thread.
Make sure your application does as little work as possible on startup.
|