Click here to Skip to main content
16,005,682 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Control unloading in WinForms? Pin
Vasek2-Aug-02 1:40
Vasek2-Aug-02 1:40 
GeneralWeb Services Implementation Guide Pin
Stanford Powers31-Jul-02 18:25
sussStanford Powers31-Jul-02 18:25 
GeneralA "Java-Applet-Like-Program" using Windows Forms Pin
Michal Januszczyk30-Jul-02 11:20
sussMichal Januszczyk30-Jul-02 11:20 
GeneralRe: A "Java-Applet-Like-Program" using Windows Forms Pin
TigerNinja_7-Aug-02 16:22
TigerNinja_7-Aug-02 16:22 
GeneralPop up a new webform Pin
cowk61229-Jul-02 19:40
cowk61229-Jul-02 19:40 
GeneralDelegate argument question/suggestions... Pin
Ryan Cromwell29-Jul-02 4:33
Ryan Cromwell29-Jul-02 4:33 
QuestionMultiple Inheritance and Genericity on .NET? Pin
Kevin McFarlane26-Jul-02 11:51
Kevin McFarlane26-Jul-02 11:51 
GeneralProblem with imagelist component Pin
damian226-Jul-02 0:53
damian226-Jul-02 0:53 
Hi,

I have very simple form with imagelist component and there are some images
in this imagelist. If this form is not the first class in the namespace
loading image throws exception
"System.Resources.MissingManifestResourceException"

Almost all code is generated by Visual Studio. I added only one line:
class NewClass {};
before form definition and image stopped loading. Form isn't localized and
image exist in resx file and
if I comment out NewClass definition or put it after Form1 everything is OK.

Could anybody explain me why this additional line causes this exception?

Thanks,
Damian

namespace WindowsApplication3
{
class NewClass {}; // problem with this line

public class Form1 : System.Windows.Forms.Form
{
private System.Windows.Forms.ImageList imageList1;
private System.ComponentModel.IContainer components;

public Form1()
{
InitializeComponent();
}

protected override void Dispose( bool disposing ) {.}

private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new
System.Resources.ResourceManager(typeof(Form1));
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream =
((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.Im
ageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// Form1
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 15);
this.ClientSize = new System.Drawing.Size(292, 267);
this.Name = "Form1";
this.Text = "Form1";

}

[STAThread]
static void Main() {.}
}

}

GeneralRe: Problem with imagelist component Pin
James T. Johnson26-Jul-02 1:14
James T. Johnson26-Jul-02 1:14 
GeneralGAC vs. Registry Pin
afronaut25-Jul-02 15:49
afronaut25-Jul-02 15:49 
GeneralRe: GAC vs. Registry Pin
Andy Smith25-Jul-02 18:41
Andy Smith25-Jul-02 18:41 
GeneralRe: GAC vs. Registry Pin
jparsons26-Jul-02 3:19
jparsons26-Jul-02 3:19 
General.NET Security Pin
IanD24-Jul-02 13:26
IanD24-Jul-02 13:26 
GeneralRe: .NET Security Pin
jparsons25-Jul-02 3:56
jparsons25-Jul-02 3:56 
GeneralRe: .NET Security Pin
Anonymous25-Jul-02 6:48
Anonymous25-Jul-02 6:48 
GeneralRe: .NET Security Pin
jparsons25-Jul-02 8:24
jparsons25-Jul-02 8:24 
GeneralUrgent- Passing paramters from asp.net to crystal reports Pin
Dinchu24-Jul-02 2:46
Dinchu24-Jul-02 2:46 
GeneralDirectX and .Net Pin
Firoz21-Jul-02 22:45
Firoz21-Jul-02 22:45 
GeneralRe: DirectX and .Net Pin
jparsons22-Jul-02 5:42
jparsons22-Jul-02 5:42 
GeneralRe: DirectX and .Net Pin
sultan_of_6string22-Jul-02 8:12
sultan_of_6string22-Jul-02 8:12 
GeneralRe: DirectX and .Net Pin
Andy Smith22-Jul-02 8:52
Andy Smith22-Jul-02 8:52 
GeneralRe: DirectX and .Net Pin
Domenic Denicola25-Jul-02 17:57
Domenic Denicola25-Jul-02 17:57 
GeneralOh what fun to Install Pin
Wolfram Steinke21-Jul-02 0:38
Wolfram Steinke21-Jul-02 0:38 
GeneralMobile Device Application Pin
laphijia19-Jul-02 16:08
laphijia19-Jul-02 16:08 
GeneralVBA.NET Pin
SHaroz19-Jul-02 7:29
SHaroz19-Jul-02 7:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.