using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
using
System.Windows.Forms;
namespace
WindowsFormsApp16 {
public
partial
class
Form1 : Form {
public
Form1()
{
InitializeComponent();
}
private
void
Form1_Load(
object
sender, EventArgs e)
{
Label mylab =
new
Label();
mylab.Text =
"GeeksforGeeks"
;
mylab.Location =
new
Point(222, 90);
mylab.AutoSize =
true
;
mylab.Font =
new
Font(
"Calibri"
, 18);
mylab.BorderStyle = BorderStyle.Fixed3D;
mylab.ForeColor = Color.Green;
mylab.Padding =
new
Padding(6);
this
.Controls.Add(mylab);
Label mylab1 =
new
Label();
mylab1.Text =
"Welcome To GeeksforGeeks"
;
mylab1.Location =
new
Point(155, 170);
mylab1.AutoSize =
true
;
mylab1.BorderStyle = BorderStyle.Fixed3D;
mylab1.Font =
new
Font(
"Calibri"
, 18);
mylab1.Padding =
new
Padding(6);
this
.Controls.Add(mylab1);
}
}
}