I think Viv clarified the message. It's a good thing to clear up Warnings. Many people just leave them, but, IMO, warnings are errors too.
>I am getting a couple warnings in Visual Studio for my C# program.
>
>
Field "Hour1.OptionsForm.Components is never assigned to, and will always have its default value null.">
>I am trying to interpret what is being said here, but don't know what the warning means. Anyone guess? The warning pertains to line 8, column 50 of the following:
>
>
>namespace Hour1
>{
> partial class OptionsForm
> {
> /// <summary>
> /// Required designer variable.
> /// </summary>
> private System.ComponentModel.IContainer components;
>
> /// <summary>
> /// Clean up any resources being used.
> /// </summary>
> /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
> protected override void Dispose(bool disposing)
> {
> if (disposing && (components != null))
> {
> components.Dispose();
> }
> base.Dispose(disposing);
> }
>
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer