Hi, I just found out that I need a different form to run at the start of the
application. How can I change the current form to not start and the new form
to start?
Thanks, Alpha 7 1377
In VS.NET or when the site is run from the browser?
If you are talking at runtime, you can use a "meta refresh" in the default
page so the browser can immediately redirect, or you could, on the server,
use Response.Redirect to do the same thing, or you could rename your page
"default.aspx", or you could change IIS so that your new page is the default
page (there is nothing that says that the default page has to be named
"default.aspx").
"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha
Thank you for the reply. My appology that I didn't clarify that this is a
Window based application.
"Peter Rilling" wrote: In VS.NET or when the site is run from the browser?
If you are talking at runtime, you can use a "meta refresh" in the default page so the browser can immediately redirect, or you could, on the server, use Response.Redirect to do the same thing, or you could rename your page "default.aspx", or you could change IIS so that your new page is the default page (there is nothing that says that the default page has to be named "default.aspx").
"Alpha" <Al***@discussions.microsoft.com> wrote in message news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha
Hi, Alpha!
Just find the entry point of the application. It is the Main() method of one
of your forms (probably the first form you added to the project. You'll see
it contains an only line of code which says:
Application.Run(new Form1());
Changing Form1 into the name of the new form you want to be the main form
should suffice. I'd recommend also to cut the Main() method from this form
and paste it into the class of the form you want to become main.
Regards - Octavio
"Alpha" <Al***@discussions.microsoft.com> escribió en el mensaje
news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha
Doh!
"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:92**********************************@microsof t.com... Thank you for the reply. My appology that I didn't clarify that this is a Window based application.
"Peter Rilling" wrote:
In VS.NET or when the site is run from the browser?
If you are talking at runtime, you can use a "meta refresh" in the default page so the browser can immediately redirect, or you could, on the server, use Response.Redirect to do the same thing, or you could rename your page "default.aspx", or you could change IIS so that your new page is the default page (there is nothing that says that the default page has to be named "default.aspx").
"Alpha" <Al***@discussions.microsoft.com> wrote in message news:4D**********************************@microsof t.com... > Hi, I just found out that I need a different form to run at the start > of > the > application. How can I change the current form to not start and the > new > form > to start? > > Thanks, Alpha
Look in the main method. There should be a reference to the Application.Run
method. You should be able to change the form that is referenced so that a
different form is being created and used.
"Alpha" <Al***@discussions.microsoft.com> wrote in message
news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha
Thank you very much for the help. I'll do that.
"Octavio Hernandez" wrote: Hi, Alpha!
Just find the entry point of the application. It is the Main() method of one of your forms (probably the first form you added to the project. You'll see it contains an only line of code which says:
Application.Run(new Form1());
Changing Form1 into the name of the new form you want to be the main form should suffice. I'd recommend also to cut the Main() method from this form and paste it into the class of the form you want to become main.
Regards - Octavio
"Alpha" <Al***@discussions.microsoft.com> escribió en el mensaje news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha
Thank you very much for your help.
"Peter Rilling" wrote: Look in the main method. There should be a reference to the Application.Run method. You should be able to change the form that is referenced so that a different form is being created and used.
"Alpha" <Al***@discussions.microsoft.com> wrote in message news:4D**********************************@microsof t.com... Hi, I just found out that I need a different form to run at the start of the application. How can I change the current form to not start and the new form to start?
Thanks, Alpha This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Pola |
last post by:
Please Help
I am using VC++ in win 2000
In my appl (Win32 project) I want to control the close operation of the apl (for example if somebody will try to close appl from the "Windows Task Manager")...
|
by: rjames.clarke |
last post by:
I have the following.
$result=mysql_query($sql);
$nrows=mysql_num_rows($result);
for ($i=0;$i<$nrows;$i++)
{
$row_array=mysql_fetch_row($result);
echo "<form name='testform'...
|
by: Dubya |
last post by:
Hello Everyone,
I have this little app, that I would like to configure two modes of
operation by using command line arguments. If the app is started with no
arguments, the Main UserForm shows...
|
by: WhatsPHP |
last post by:
Can PHP be used to change my clients static HTML pages? By themselves?
Instead of having to download the HTML from the server, then use
dreamweaver and upload the file back?
Thanks
Rohan
|
by: olbion |
last post by:
Hi
I've aquired a program written in Python, and without much knowledge of
the language I'm trying to make some changes to it. The original
program starts, runs a certain process and then...
|
by: Patrick [MSFT] |
last post by:
Let me preface this with the goal I'm trying to achieve is mimic a feature
of another language (Dexterity used by Microsoft Dynamics) and so while a
filling a drop down list is a workable solution...
|
by: cj |
last post by:
..net 2003
I have a form with 1 button and several labels on it. I don't want the
button to be the default if enter is pressed. I want the user to have
to actually click it for it to work. I...
|
by: Edwin Smith |
last post by:
I have a form which displays a DataGridView table generated with the VS2005
tools. The database is a Pervasive v.9 with an ODBC driver.
The DataGridView works great except when I'm done and I...
|
by: =?Utf-8?B?RW1pbA==?= |
last post by:
Hi all,
I’m very very new in C#/WPF world, but this fascinates me more and more. Now
I must find a way how our future application will use the localization /
globalization. I did all the steps...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: ArrayDB |
last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
| |