这个问题比较复杂,要在你的程序里增加判断程序自身是否正在运行的代码,需要调用WINDOWS的API,如果发现程序自身正在运行,可以结束原来的程序。或是新程序显示界面前,给原程序发送一个通讯信息,传输“文件名”等,新程序不显示界面就关闭。总之,需要调用WINDOWS的API。如果给分的话,我可以帮你。

解决方案 »

  1.   

    Are you sure this is the only way out?
      

  2.   

    在我的感觉中,大部分的windows 程序都可以做到这一点,如editplus以及realplyer等等媒体播放器都实现了该功能
      

  3.   

    如果帮助到位,一定给分100% sure,but maybe time lagging because i 'm busy during the day working in the offic ,no time to check the answers immediately!
      

  4.   

    看看试试在你form_load 中加上Private Sub Form_Load()
        If App.PrevInstance = True Then
            Exit Sub
        End If
    End Sub
      

  5.   

    no use ,it's the same as the  previous prog!!!
    but thx all the same