LABELS

Tuesday, February 8, 2011

HTML DOCUMENT PROJECT -> form2.cs

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.Net;
using System.IO;

namespace HtmlDocument
{
public class Form2: Form
{
public Form2 ()
{
      this.Width=500;
this.Height=200;
  Text="Error reason dialog ";
  String Text1 = "The reason for error is either of the following:"
+"\n"+"1.The URL is not in form http://www.domainName.com/path"
+"\n"+"2.The protocol definition might be invalid"
+"\n"+"3.The path of the page that you specified might not exist";;

        Font font = new Font("Serif", 10);

        Label lyrics = new Label();
        lyrics.Parent = this;
        lyrics.Text = Text1;
        lyrics.Font = font;
        lyrics.Location = new Point(10, 10);
        lyrics.Size = new Size (450,450);
    CenterToScreen();


}
private void Form2_Load(object sender, EventArgs e)
        {
            this.Text = "Error ";

        }
}
}

No comments:

Post a Comment