473,471 Members | 2,613 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trying to imitate VS2005...

In Visual Studio 2005 Windows Applications there is always a class named
program that incorporates the following code:
/// <summary>

/// The main entry point for the application.

/// </summary>

[STAThread]

static void Main()

{

Application.EnableVisualStyles();

Application.SetCompatibleTextRenderingDefault(fals e);

Application.Run(new StepByStep3_01());

}

I was trying to imitate this pattern using Visual Studio 2003. Recognizing
that not all the methods of .NET 2.0 may be available in .NET 1.1, I removed
the first two Application methods, and only tried using the Application.Run
method that I know exists in 1.1.

I made sure I had using statements for those namespaces that exist in 1.1
that correlate with those from the sampe in 2.0. I main the class program
in files program.cs the default startup, but when I attempted to compile,
the system had issues with the [STAThread] attribute. It did not
recognize it as an attribute and would not compile.

I am wondering what I missed, if anything. It seems to me that using a
program class with a main method is a good idea, but if I can't open a form
that way I will have go back to the standard method. Can anyone tell me
what I could be doing wrong?
Sep 27 '06 #1
0 983

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

Similar topics

1
by: Tom Youngquist | last post by:
Does anyone know the command to "imitate" the "Back" button on a browser in .NET. I have looked in the Redirect but can't seem to find anything. I can re-direct to a specific page but my users...
4
by: alan.aylett | last post by:
Hi, I have three years experience programming with Java so am programming language literate. I have to implement a tool to 'screen scrape' and it is apparent that this is simplest using the .NET...
0
by: Allen | last post by:
Guess I have to give up! I tried hard to figure a way with the new toolmenustrip but it's not possible. When I went from VB6 to VB.net I found I could generate a context menu in a usercontrol...
2
by: Arthur Dent | last post by:
Hello all, We have a development web server where we host our sites under development and let clients look at them as they are coming along at milestones to make feedback and suggestions. I am...
1
by: prophasi | last post by:
Hi all, I just went back to trying my hand at some C++ after a very long break, and I've gotta confess that I totally suck so far, and I'm actually trying to do something that's got to be...
12
by: gil | last post by:
I would like to display a Union Collective Agreement in HTML format and keep it as true as possible to the pdf version. The document uses Article Numbers such as 1.01, 1.02 which are not...
1
by: tedpottel | last post by:
Hi, I am trying to write a BOT to read the search results from Google. When I read from the www.google.com, the code works fine, loads in the web page. When I try to load in a url with the...
3
by: Robert Dunlop | last post by:
I am using Microsoft Visual Studio 2005 for development of an ASP.NET site, and I have a problem that greatly effects my workflow at times. It seems that after I upload new files anywhere within...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.