Control Panel
Forum
Hosting Help
6 Months free Hosting (New!)
Resources
Login
Members
Shared Hosting
|
New Features
|
Advertise
|
Tutorials
|
Product Reviews in India
|
Free aptitude test questions
|
TATA Nano Car reviews
Total
members
:
80998
Average new registrations per day (in last 7 days):
41
New Registration:
Open
Register Now
Home
»
Resources
»
ASP.NET Unleashed 2.0
ASP.NET
ADO.NET
Web Services
Remoting
Visual Studio 2005
Error Bank
Interview Questions
Tips & Tricks
XML
HTML
Jscript/Javascript
IIS
Windows
General
Submit Resource or code snippet
... and get
surprise gifts
Win Digital camera, ASP.NET Books, Free softwares!!
ASP.NET Unleashed 2.0
19 Apr, 2008
Author:
yansoft
Summary
This is E-Book,And it is very usefull
.NET Classes used :
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{//??TableLayoutPanel??????????
TableLayoutPanel tableLayoutPanel1 = new TableLayoutPanel();
Label label1= new Label();
Label label2 = new Label();
TextBox textBox1= new TextBox();
Label label3= new Label();
RichTextBox richTextBox1= new RichTextBox();
// tableLayoutPanel1
tableLayoutPanel1.ColumnCount = 3;
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 29.79592F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 70.20408F));
tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 146F));
tableLayoutPanel1.Controls.Add(label1, 0, 0);
tableLayoutPanel1.Controls.Add(label2, 0, 1);
tableLayoutPanel1.Controls.Add(textBox1, 1, 1);
tableLayoutPanel1.Controls.Add(label3, 0, 2);
tableLayoutPanel1.Controls.Add(richTextBox1, 1, 2);
tableLayoutPanel1.Dock = DockStyle.Fill;
tableLayoutPanel1.RowCount = 4;
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 46.66667F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 53.33333F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 27F));
tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Absolute, 139F));
// label1
label1.AutoSize = true;
tableLayoutPanel1.SetColumnSpan(label1, 3);
label1.Font = new System.Drawing.Font("??", 15.75F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))), System.Drawing.GraphicsUnit.Point, ((byte)(134)));
label1.Size = new System.Drawing.Size(384, 21);
label1.Text = "?????????????????";
// label2
label2.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
label2.AutoSize = true;
label2.Size = new System.Drawing.Size(65, 12);
label2.Text = "????:";
// textBox1
tableLayoutPanel1.SetColumnSpan(textBox1, 2);
textBox1.Name = "textBox1";
textBox1.Size = new System.Drawing.Size(313, 21);
// label3
label3.Anchor = ((AnchorStyles)((AnchorStyles.Bottom | AnchorStyles.Left)));
label3.AutoSize = true;
label3.Size = new System.Drawing.Size(65, 12);
label3.Text = "????:";
// richTextBox1
tableLayoutPanel1.SetColumnSpan(richTextBox1, 2);
richTextBox1.Dock = DockStyle.Fill;
tableLayoutPanel1.SetRowSpan(richTextBox1, 2);
richTextBox1.Size = new System.Drawing.Size(313, 161);
Controls.Add(tableLayoutPanel1);
}
}
}
Feedbacks about this page from members:
- No Feedbacks yet !! -
Submit Feedback
View All Feedbacks
Partners
Privacy Policy
Terms of use
Contact Us
SpiderWorks Technologies.
All Rights Reserved.