Şekil 1
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Form form2 = new Form();
form2.Text = "String Yazım";
form2.BackColor = Color.White;
form2.Paint += new PaintEventHandler(PaintHandler);
Application.Run(form2);
}
static void PaintHandler(object objSender, PaintEventArgs pea)
{
Form form2 = (Form)objSender;
Graphics graphics = pea.Graphics;
graphics.DrawString("Merhaba Dünya!", form2.Font, Brushes.Black, 0, 0);
}
}
}
Bir makalenin daha sonuna geldik. Bir sonraki makalede görüşmek dileğiyle. Bahadır ŞAHİN
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Form form2 = new Form();
form2.Text = "String Yazım";
form2.BackColor = Color.White;
form2.Paint += new PaintEventHandler(PaintHandler);
Application.Run(form2);
}
static void PaintHandler(object objSender, PaintEventArgs pea)
{
Form form2 = (Form)objSender;
Graphics graphics = pea.Graphics;
graphics.DrawString("Merhaba Dünya!", form2.Font, Brushes.Black, 0, 0);
}
}
}
Bir makalenin daha sonuna geldik. Bir sonraki makalede görüşmek dileğiyle. Bahadır ŞAHİN
0 comments:
Yorum Gönder