C#.netÖÐÓÃWinForm½ÓÊÕhtmlÒ³ÃæÏûÏ¢µÄ³ÌÐò
Ê×ÏÈдһ¸öÒ³Ãæ£¬ÉÏÃæÒª·ÅÒ»¸öButton
<html>
<head>
<title></title>
</head>
<body>
<input id="Button1" type="button" value="button" />
</body>
</html>
½«Æä±£´æÔÚHomePage.htmÖУ¬
Ö®ºóÎÒÃǽ¨Ò»¸öWinForm£¬
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace SXT.Frame.Ctrler.Test
{
public partial class HtmlUi : Form
{
public HtmlUi()
{
InitializeComponent();
this.webBrowser1.Navigate("D:\\SXT\\bin\\Debug\\HomePage.htm");//±¾µØÎļþ·¾¶
}
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
HtmlDocument htmlDoc = this.webBrowser1.Document;
HtmlElement btnElement = htmlDoc.All["Button1"];
if (btnElement != null)
{
btnElement.Click += new HtmlElementEventHandler(btnElement_Click);
}
}
void btnElement_Click(object sender, HtmlElementEventArgs e)
&n
Ïà¹ØÎĵµ£º
1£¬Builderģʽ
¢Ù ¼ÙÉè¹¹½¨Ò»¸ö·¿ÎÝHouseÀ࣬¸Ã·¿ÎÝÓм¸¸ö²¿·Ö×é³É£¬±ÈÈçÃÅ£¬´°£¬Ç½£¬¶øÆäÿ¸ö²¿·Ö¶¼¸»Óڱ仯£¬Èç¸öÑùʽµÄÃÅ£¬Ã¿¸öÑùʽ¶¼ÓÐÒ»¸ö»òÕß¼¸¸ö
¢Ú Èç¹ûʹÓÃÖ±¹ÛµÄÉè¼Æ·½·¨£¬Ã¿Ò»¸ö·¿Îݲ¿·ÖµÄ±ä»¯£¬¶¼½«µ¼Ö·¿ÎÝÒªÖØÐÂÐÞÕý£¨µ«ÊÇ·¿ÎÝ£¬ÃÅ£¬´°£¬Ç½¶¼Ã»Óб仯£©
ʵ¼ÊÉÏÊÇÓÃÀ´Ó¦¶Ô£¬ÏµÍ³µÄÖ÷ÏßÏà¶ÔÎȶ¨£ ......
/**************************************************************************************************
* ×÷Õßwenwenhua
*
/* Program : A Simple Screen Saver
* File Name : ScreenSaver.cs
* Author : Tran Khanh Hien
......
HTML±í¸ñºÜÈÝÒ×ÉÏÊÖ£¬Ò»¶Ñtr¼Ótd¾Í¿ÉÒÔÏÔʾһÕűí¸ñÁË¡£¸´ÔÓÒ»µã¾ÍÊÇÔÙ¼ÓÉÏth£¬colgroup£¬tbody£¬tfooter£¬captionÖ®Àà¡£ÕâЩHTMLÀïÃæµÄ¸÷ÖÖÔªËØµÄÈ·¼ÓÇ¿Á˱í¸ñµÄʵÓÃÐÔºÍÓïÒ廯£¬µ«table±¾Éí¾ÍÓкܴóѧÎÊŶ£¬±Ï¾¹ÊÇÕû¸ö±í¸ñµÄ¸ù°¡£¡
½ñÌìÏÂÃæÒª×ܽá°üº¬¶Ôtable±¾ÉíµÄÊôÐÔ¹éÄɺÍtableרÓõÄCSS±È½Ï£º
attributes VS CSS ......
¾²Ì¬½á¹¹
£¼html£¾
£¼head£¾
£¼title£¾±êÌ⣼title£¾
£¼/head£¾
£¼body£¾..........ÎļþÄÚÈÝ..........
£¼/body£¾
£¼/html£¾
1.Îļþ±êÌâ
£¼title£¾..........£¼/title£¾
2.Îļþ¸üÐÂ--£¼meta£¾
¡¡¡¾1¡¿10Ãëºó×Ô¶¯¸üÐÂÒ»´Î
¡¡¡¡£¼meta http-equiv="refresh" content=10£¾
¡¡¡¾2¡¿10Ãëáá×Ô¶¯Á¬½áµ½ÁíÒ»Îļþ
¡¡¡¡ ......
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
namespace ConsoleApplication4
{
class Program
{
static void Main(string[] args)
{
//sqlserverÉí·ÝÑéÖ¤
//string sqlconn = "ser ......