首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

一个小浏览器的代码,高手来帮看看那里错了,该怎么处理

2012-01-19 
一个小浏览器的代码,高手来帮看看那里错了usingSystemusingSystem.Collections.GenericusingSystem.Comp

一个小浏览器的代码,高手来帮看看那里错了
using   System;
using   System.Collections.Generic;
using   System.ComponentModel;
using   System.Data;
using   System.Drawing;
using   System.Text;
using   System.Windows.Forms;

namespace   浏览器
{
        public   partial   class   Form1   :   System.Windows.Forms.Form
        {
                public   Form1()
                {
                        InitializeComponent();
                }

                static   void   Main()
                {
                        Application.Run(new   Form1());
                }

                private   void   button6_Click(object   sender,   EventArgs   e)
                {
                        if   (textBox1.Text.Length   <   1)
                                return;
                        try
                        {
                                string   Strvr1   =   textBox1.Text;
                                System.Object   MyObject   =   " ";
                                axWebBrowser1.Navigate(Strvr1,   ref   MyObject,   ref   MyObject,   ref   MyObject,   ref   MyObject);
                        }
                        catch(Exception   Err)
                        {
                                MessageBox.Show(Err.Message, "信息提示 ",MessageBoxButtons.OK,MessageBoxIcon.Information);
                        }
                }

                private   void   button1_Click(object   sender,   EventArgs   e)
                {
                        try
                        {
                                axWebBrowser1.GoBack();
                        }


                        catch   {   }
                }

                private   void   button2_Click(object   sender,   EventArgs   e)
                {
                        try
                        {
                                axWebBrowser1.GoForward();
                        }
                        catch   {   }
                }

                private   void   button4_Click(object   sender,   EventArgs   e)
                {
                     
                                axWebBrowser1.Stop();
                       
                }

                private   void   button3_Click(object   sender,   EventArgs   e)
                {
                   
                     
                                axWebBrowser1.GoHome();
                     
                     
                }

                private   void   button5_Click(object   sender,   EventArgs   e)
                {
                     
                                axWebBrowser1.Refresh();
                       
                }

                private   void   axWebBrowser1_Enter(object   sender,   EventArgs   e)
                {

                }


        }
}


[解决办法]
你的代码没完啊?大哥。

热点排行