this.Opacity = 0.8;
this.Text = "My Main Window";
this.ResumeLayout(false);
}
For all practical purposes, when you are building a Windows Forms application using Visual
Studio, you can (and typically should) ignore the *.Designer.cs files and allow the IDE to maintain
them on your behalf. If you were to author syntactically (or logically) incorrect code within
InitializeComponent(), you might break the designer. As well, Visual Studio often reformats this
method at design time. Thus, if you were to add custom code to InitializeComponent(), the IDE
may delete it! In any case, simply remember that each window of a Windows Forms application is
composed using partial classes.
Do'stlaringiz bilan baham: |