当前位置:首页 » 多媒体相关

蔡鸟问题,高分求救!!!!!!!!!!


位大虾,我在我的asp.net工程中添加了一个process组件,执行  
  process.start()     时,我可以从进程管理器中看到我所要打开的进程打开了,但是我的windows中却没有开启任何窗口(createnowindow属性无论设为true   还是false都没有效果)  
   
   
  再请问如何给我开的进程发送消息,可以用win32api吗?  
   
   
   
  源程序如下  
   
  public   class   webform1  
          inherits   system.web.ui.page  
          protected   withevents   myprocess   as   system.diagnostics.process  
          protected   withevents   button2   as   system.web.ui.webcontrols.button  
          protected   withevents   button1   as   system.web.ui.webcontrols.button  
   
  #region   "   web   窗体设计器生成的代码   "  
   
          该调用是   web   窗体设计器所必需的。  
          <system.diagnostics.debuggerstepthrough()>   private   sub   initializecomponent()  
                  me.myprocess   =   new   system.diagnostics.process()  
   
          end   sub  
   
          private   sub   page_init(byval   sender   as   system.object,   byval   e   as   system.eventargs)   handles   mybase.init  
                  codegen:   此方法调用是   web   窗体设计器所必需的  
                  不要使用代码编辑器修改它。  
                  initializecomponent()  
          end   sub  
   
  #end   region  
   
          private   sub   page_load(byval   sender   as   system.object,   byval   e   as   system.eventargs)   handles   mybase.load  
                  在此处放置初始化页的用户代码  
          end   sub  
   
          private   sub   button1_click(byval   sender   as   system.object,   byval   e   as   system.eventargs)   handles   button1.click  
                  myprocess.startinfo.filename   =   "c:\test22.exe"     换成任何程序都无效  
                  myprocess.startinfo.createnowindow   =   false  
                  myprocess.startinfo.windowstyle   =   diagnostics.processwindowstyle.maximized  
                  if   myprocess.start()   =   true   then                         窗口不被显示,但是进程被执行  
                          response.write("ok")                                           结果显示是"ok"  
                  else  
                          response.write("faild")  
                  end   if  
          end   sub  
   
    end   class  
 

.

推荐阅读

  • 中移动国际漫游费大跳水 中国联通欲跟进降价 [详细内容]
  • NEC推出最新娱乐手机N6305 [详细内容]
  • S60省电技巧:不用软件来关闭手机上费电的功能 [详细内容]
  • 珠三角地区嗷嗷待哺 美风投期待对接中国芯 [详细内容]
  • 魔兽大奖?! 竞答七彩虹X1300就可得! [详细内容]
  • 蓝色魅影--图文教你玩转dv(二) [详细内容]
  • 牵手“手机大头” 体验免费的世界杯随身乐趣 [详细内容]
  • 网友回答:

    讨论区

    Login