using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace Example037_阴影效果文字
{
    public class Form1 : System.Windows.Forms.Form
    {
        ///此处省略自动生成的代码
        ///应用程序的主入口点
        ///</summary>
        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }
        private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            Graphics g = e.Graphics;
            Font MyFont;
            MyFont = new Font("SansSerif", 40);            SolidBrush textShadowBrush = new SolidBrush(Color.FromArgb(70, Color.Blue));
            g.DrawString("Hello C#", MyFont, Brushes.Blue, 25, 25);            g.DrawString("Hello C#", MyFont, Brushes.Blue, 25, 25);
            //显示带阴影的文字
        }               }
    }