和金山词霸一样,他的界面是怎么实现的呢?左边一点单词右边就出来了相应的解释,关键是右边他是用的什么控件呢?显示的还有图片,还有图片链接吧应该是(那个发音小喇叭),不知道是什么控件,哪位大侠给讲讲

解决方案 »

  1.   

    RichTextBox可能可以实现
    不过个人感觉人家是用的支持Html的控件,要不你也塞个WebBrowser吧
      

  2.   

    是webbrowser吗?我用SPY++看没有发现webbrowser呀
      

  3.   

    或者说是WINFORM程序如何把数据在内存里生成这样一个网页然后加载到webbrowser呢
      

  4.   

    支持Html的控件一定就是WebBrowser么?
    还有WebBrowser类名不一定是WebBrowser,.NET的拖上去叫Shell Embedding
    普通的IE浏览器窗体类名叫Internet Explorer_Server
      

  5.   

    webBrowser1.DocumentText = @"<html><head><meta http-equiv=Content-Type content=""text/html;charset=gb2312""><title>百度一下,你就知道      </title><style>body{margin:4px 0}p{margin:0;padding:0}img{border:0}td,p,#u{font-size:12px}#b,#u,#l td,a{font-family:arial}#kw{font:16px Verdana;height:1.78em;padding-top:2px}#b{height:30px;padding-top:4px}#b,#b a{color:#77c;font-size:12px}#u{padding-right:10px;line-height:19px;text-align:right;margin-bottom:3px !important;margin-bottom:10px}#sb{height:2em;width:5.6em}#km{height:50px}#km a{font-family:宋体}#l{margin-bottom:5px}#m{margin-left:100px;width:22.1em;text-align:center}p,#b,table{width:600px;border:0}#sb,#km,#l,#m{font-size:14px}#m a,#m b{margin-right:1.14em}a{color:#00c}a:active{color:#f60}</style></head>
    <body><div id=u></div><center><img src=http://www.baidu.com/img/logo.gif width=174 height=59 alt=百度><br><br><br><br><table cellpadding=0 cellspacing=0 id=l><tr><td align=left><div id=m><a onclick=s(this) href=http://news.baidu.com>新&nbsp;闻</a><b>网&nbsp;页</b><a onclick=s(this) href=http://tieba.baidu.com>贴&nbsp;吧</a><a onclick=s(this) href=http://zhidao.baidu.com>知&nbsp;道</a><a onclick=s(this) href=http://mp3.baidu.com>MP3</a><a onclick=s(this) href=http://image.baidu.com>图&nbsp;片</a></div></td></tr></table>
    <table cellpadding=0 cellspacing=0><tr valign=top><td width=92></td><td height=62 nowrap><form name=f action=/s><input type=text name=wd id=kw size=36 maxlength=100><script>var w=document.f.wd;w.focus();document.getElementById(""u"").innerHTML='<a href=""http://passport.baidu.com/?login&tpl=mn&u='+escape(location.href)+'"">登录</a>';function s(o){if(w.value.length>0){var h=o.href;var q=encodeURIComponent(w.value);if(h.indexOf(""q="")!=-1){o.href=h.replace(new RegExp(""q=[^&$]*""),""q=""+q)}else{o.href+=""?q=""+q}}};(function(){if(new RegExp(""q=([^&]+)"").test(location.search)){w.value=decodeURIComponent(RegExp.$1)}})()</script> <input type=submit value=百度一下 id=sb><input type=hidden name=tn value=""luojianbin_pg""><input type=hidden name=bar value=""""><br><br></form></td><td width=100><a href=/search/jiqiao.html>帮助</a><br><a href=/gaoji/advanced.html>高级</a></td></tr></table>
    <p id=km>&nbsp;<a href=http://hi.baidu.com>空间</a>&nbsp;|&nbsp;<a href=http://www.baidu.com/more>更多>></a></p>
    <p style=height:60px></p>
    <p style=height:30px><a onClick=""this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.baidu.com')"" href=http://utility.baidu.com/traf/click.php?id=215&url=http://www.baidu.com>把百度设为首页</a></p><p style=height:14px><a href=http://jingjia.baidu.com>企业推广</a> | <a href=http://top.baidu.com>搜索风云榜</a> | <a href=/home.html>关于百度</a> | <a href=http://ir.baidu.com>About Baidu</a></p><p id=b>&copy;2008 Baidu <a href=http://www.baidu.com/duty>使用百度前必读</a> <a href=http://www.miibeian.gov.cn target=_blank>京ICP证030173号</a> <a href=http://www.hd315.gov.cn/beian/view.asp?bianhao=010202001092500412><img src=http://gimg.baidu.com/img/gs.gif></a></p></center></body></html><!--77ab35478c83339d-->";
      

  6.   

    然后Navigated事件中就知道点了什么东西(譬如说小喇叭)
      

  7.   

    金山好象真是用的webbrowser通过Shell Embedding 就可以来获得浏览器句柄,但现在还不知道如何在内存里动态生成数据然后填到webbrowser里
      

  8.   

    动态生成Html不会么?
    加标签,添字符串都不会啊?
    拼完后赋值给DocumentText不就行了
      

  9.   

    晕倒,WebBrowser就是浏览器
    DocumentText就是Html代码
    “数据在里面的位置”用<tb><tr>来定位元素
      

  10.   

    人家肯定自己写的容器类。
    要是单纯的什么webbrowser,richtext,panel什么的,那也太没技术含量了。
      

  11.   

    大家感觉金山词霸就是这样生成HTML标签然后拼起来的吗?我现在要做的就是那个东西。查询后显示出来,显示的有词语的解释和一个发音标签(一个图片,点这个图片对单词发音)
      

  12.   

    <a><image></image></a>