CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VB >  基础类

急!我用VB调用别的应用程序。

楼主lgd211(lgd211)2002-04-03 11:24:09 在 VB / 基础类 提问

我用VB调用别的应用程序。如:IE    
  如何把它设置为当前,就是最前面??    
  谢谢!  
   
   
  问题点数:50、回复次数:3Top

1 楼gump2000(阿甘)回复于 2002-04-03 11:27:46 得分 50

Runs   an   executable   program   and   returns   a   Variant   (Double)   representing   the   program's   task   ID   if   successful,   otherwise   it   returns   zero.  
   
  Syntax  
   
  Shell(pathname[,windowstyle])  
   
  The   Shell   function   syntax   has   these   named   arguments:  
   
  Part   Description    
  pathname   Required;   Variant   (String).   Name   of   the   program   to   execute   and   any   required   arguments   or   command-line   switches;   may   include   directory   or   folder   and   drive.    
  windowstyle   Optional.   Variant   (Integer)   corresponding   to   the   style   of   the   window   in   which   the   program   is   to   be   run.   If   windowstyle   is   omitted,   the   program   is   started   minimized   with   focus.    
   
   
  The   windowstyle   named   argument   has   these   values:  
   
  Constant   Value   Description    
  vbHide   0   Window   is   hidden   and   focus   is   passed   to   the   hidden   window.      
  vbNormalFocus   1   Window   has   focus   and   is   restored   to   its   original   size   and   position.    
  vbMinimizedFocus   2   Window   is   displayed   as   an   icon   with   focus.    
  vbMaximizedFocus   3   Window   is   maximized   with   focus.    
  vbNormalNoFocus   4   Window   is   restored   to   its   most   recent   size   and   position.   The   currently   active   window   remains   active.    
  vbMinimizedNoFocus   6   Window   is   displayed   as   an   icon.   The   currently   active   window   remains   active.    
   
   
   
  shell   "...explorer.exe",   3Top

2 楼baguijin999()回复于 2002-04-03 11:30:32 得分 0

使用Shell来调用一个可执行程序。如:  
  Shell("calc.exe")  
  不知是否是你要的那种。Top

3 楼tony_jian(晕了)回复于 2002-04-03 11:30:40 得分 0

同意楼上Top

相关问题

  • 请问在VB中如何直接调用应用程序?
  • 怎样在vb 中调用 windows 应用程序!
  • 急!急!急!在VC++应用程序中如何调用webservice?
  • ==>急!ASP.NET怎么调用客户端应用程序?...在线等...
  • VB中如何通过点击commandbutton按钮调用另一应用程序.
  • 在VB如何调用其它应用程序并做为MDI子窗口?
  • 如何在VB开发的应用程序中调用动画光标?
  • 怎么在vc中像在vb中用shell一样调用应用程序?
  • 怎样在dll中获得调用它的应用程序的名称?急!!!
  • 如何在web应用程序中调用其他的exe文件。紧急!

关键词

  • program
  • windowstyle
  • focus
  • variant
  • argument

得分解答快速导航

  • 帖主:lgd211
  • gump2000

相关链接

  • Visual Basic类图书
  • Visual Basic类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo