欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件高级功能研发区 → 以vbs增加工具条窗体实现网络搜索等功能

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有13337人关注过本帖平板打印复制链接

主题:以vbs增加工具条窗体实现网络搜索等功能

帅哥哟,离线,有人找我吗?
ygy7876
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:多属性 帖子:11 积分:199 威望:0 精华:2 注册:2009/8/29 11:11:33
  发帖心情 Post By:2009/12/27 9:11:27 [只看该作者]

工具条窗体中全部代码:

Sub APPLICATION_VBAStart()   '初始化UserForm2窗体
 gjtct.show
  gjtct.Move 320,-28,53,450
 
End Sub

 

Sub gjtct_Click()            ' 单击窗体时展开窗体
 call gjtct.Move (320,-28,200,450)
End Sub
 
Sub gjtct_DblClick(Cancel)     '双击窗体时收缩窗体
 call gjtct.Move (320,-28,53,450)
End Sub


Sub gjtct_Load()     '加载窗体时显示最大和最小按钮
 gjtct.MinButton=1
 gjtct.MaxButton=1
 
End Sub


Sub gjtct_CommandButton1_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://www.windin.com/home/stock/html/"&Label&"."&Market&".shtml?&t=1&q="&Label, "", "", 1 )
End Sub


Sub gjtct_CommandButton2_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://profile.10jqka.com.cn/GenBase/"&Label&".html", "", "", 1 )   '巨灵F10

End Sub


Sub gjtct_CommandButton3_Click()
dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://guba.eastmoney.com/"&Label&",guba.html", "", "", 1 )   '东方财富股吧
End Sub


Sub gjtct_CommandButton4_Click()    '搜狗新闻搜索

dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 call Application.ShellExecute ("open", "http://news.sogou.com/news?query="&Label&"", "", "", 1 )               
End Sub

 


Sub gjtct_CommandButton5_Click()
Application.WinExec  "E:\dzh2\大智慧新一代.exe", 1

End Sub


Sub gjtct_CommandButton7_Click()
 
   dim Label
  dim Market
  Result = Application.GetCurrentStock(Label,Market)
  if Result = 0 then
      msgbox "请选择一个品种"
      exit sub
  end if
 
 Set objIE = CreateObject("InternetExplorer.Application")   '调用MSie的剪贴板实现复制股票代码
 objIE.Navigate("about:blank")
 objIE.document.parentwindow.clipboardData.SetData "text", Label
 objIE.Quit
 
 msgbox "已成功将"&Market&Label&"复制到粘贴板"

End Sub

[此贴子已经被作者于2009-12-27 14:34:01编辑过]

 回到顶部
总数 13 1 2 下一页