Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


CSharp Programming

CSharp > Code Examples

Non-resizable form

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
Non-resizable form using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; public class Form1 : System.Windows.Forms.Form { private Button myButton; public Form1() { this.AutoScaleBaseSize = new System.Drawing.Size(8, 18); this.ClientSize = new System.Drawing.Size(301, 188); this.MaximumSize=new Size(240,240); this.MinimumSize=new Size(240,240); myButton = new Button(); myButton.Text = "www.happycodings.com"; myButton.Location = new System.Drawing.Point(69, 36); myButton.Size = new System.Drawing.Size(180, 45); Controls.Add(myButton); } static void Main() { Application.Run(new Form1()); } }