473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Different Entry Point

Is is possible to define a different entry point than Main?
i.e.
[STAThread]

static void MainEntryPoint()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(fals e);

Application.Run(new MainForm());

}

Or is it hard coded so you have to use Main?

(BTW, I'm in VS.net)

Thanks,

Jon
Sep 27 '06 #1
3 1243
Hi Jon,

You can change the startup object in the properties window for your project, however I don't think you can change the method name
from Main.

What are you trying to accomplish by changing the Main method's name?

--
Dave Sexton

"Jon Slaughter" <Jo***********@Hotmail.comwrote in message news:12*************@corp.supernews.com...
Is is possible to define a different entry point than Main?
i.e.
[STAThread]

static void MainEntryPoint()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(fals e);

Application.Run(new MainForm());

}

Or is it hard coded so you have to use Main?

(BTW, I'm in VS.net)

Thanks,

Jon


Sep 28 '06 #2

"Dave Sexton" <dave@jwa[remove.this]online.comwrote in message
news:OJ**************@TK2MSFTNGP03.phx.gbl...
Hi Jon,

You can change the startup object in the properties window for your
project, however I don't think you can change the method name from Main.

What are you trying to accomplish by changing the Main method's name?
I just wanted to call my class main instead of program ;/ Not a big deal but
was just curious if I could.
Sep 28 '06 #3
Jon Slaughter wrote:
You can change the startup object in the properties window for your
project, however I don't think you can change the method name from Main.

What are you trying to accomplish by changing the Main method's name?

I just wanted to call my class main instead of program ;/ Not a big deal but
was just curious if I could.
I've taken to calling the entry point class EntryPoint which then
doesn't conflict with Main. Just an idea :)

Jon

Sep 28 '06 #4

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

Similar topics

1
by: I am Sam | last post by:
Hi Everyone, I am new to Server control development and I am wondering how do I define the entry point for a server control? In a regular page you define Page_Load as an entry point and in a...
1
by: TRI_CODER | last post by:
I am trying to solve the following exception. The exception occurs when my ASP.NET code behind code attemtps to access a remore site using SSL. Please note that all certificates are valid and the...
17
by: romixnews | last post by:
Hi, I'm facing the problem of analyzing a memory allocation dynamic and object creation dynamics of a very big C++ application with a goal of optimizing its performance and eventually also...
5
by: Mike in Santa Rosa | last post by:
I'm trying to get a simple c# app built that can launch/manipulate an excel workbook, sheet. I've chased down several examples and can't any of them to work. So I must be doing somethnig obviouslt...
2
by: bboule | last post by:
Hi I have developped a dll that I want to use in another program ! here is my code : using System; using System.Collections.Generic; using System.Text; namespace NameSpace
9
by: gjiang_usenet | last post by:
Hi, I have an application compiled using gcc under DB2 v8 for Windows Fixpak 12. It works fine for this fixpak. However, if I move the application to a different DB2 fixpak (on Windows), it...
10
by: Lung.S.wu | last post by:
Hi all, It is a history question. Recently, I read the book "C A reference manual, third edition". In this book, it list all C language keyword, and one is "entry". I know it is omitted from...
43
by: davidkoree | last post by:
I mean not about cookie. Does it have something to do with operating system or browser plugin? I appreciate any help.
15
by: Juha Nieminen | last post by:
I'm sure this is not a new idea, but I have never heard about it before. I'm wondering if this could work: Assume that you have a common base class and a bunch of classes derived from it, and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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,...

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.