torsten's .NET blog In the end, everything is a gag [Ch. Chaplin]
# Tuesday, April 27, 2004
Visual Studio 7 Forms Designer issue: order of classes is important

Today I stumbled over this issue with the Visual Studio 7 Forms Designer:

 "The class Main can be designed, but is not the first class in the file.  Visual Studio requires that designers use the first class in the file.  Move the class code so that it is the first class in the file and try loading the designer again."

Here is the sample code:

namespace Test
{
 public class MyEventArgs {
  public string Param1;
  public bool Param2;
 }
 /// <summary>
 /// Summary description for Main Form.
 /// </summary>
 public class Main : System.Windows.Forms.Form
 {
 }
}

So: avoid this by using separate files for each class if possible or keep at least the forms class code alone.

Technorati tags:  | 
Tuesday, April 27, 2004 4:51:34 PM (W. Europe Standard Time, UTC+01:00)    #  Comments [0]  | 
Comments are closed.
Navigation

Like RSS Bandit? Make a donation to help support its development and maintenance. As little as 1€ will help.

Make payments with PayPal - it's fast, free and secure!
On this page....
<November 2008>
SunMonTueWedThuFriSat
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

SUBSCRIBE RSS GeoURL e-mail

Search
Categories
Blogroll
[Feed] Dare Obasanjo
Dare Obasanjo aka Carnage4Life
[Feed] Clemens Vasters
[Feed] Omar Shahine
[Feed] Tom Mertens

newtelligence dasBlog 2.1.8102.813

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

WOT Notar

Join WebHost4Life.com