如何在Visual Basic中创建链接,将按钮与指定的程序连接??? [英] how to create link in visual basic that will connect button with specified program???

查看:108
本文介绍了如何在Visual Basic中创建链接,将按钮与指定的程序连接???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个小的简单程序,它会显示几个按钮,当点击每个按钮时,用户自动获取具有指定路径的相应软件,例如当我按下按钮autocad时,它会打开C:/中的autocad autocad / autocad.exe,当我想打开du:.dudu / dura.apr中的dura.apr莲花应用程序时,点击dura按钮后打开它,当我点击sales文件夹时它会自动转到sales文件夹中c:/ sales / sales files / sales文件夹等。很容易在excel中做,只使用超链接,它工作正常,但我想在vb中使它,所以当我执行exe文件时,我有所有按钮的菜单( autocad,dura,sales folder等)软件保持打开其他应用程序的位置,它也应该有退出按钮关闭它。任何人都可以帮助我,我花了很多时间,我只能找到如何打开链接到按钮的网站。我在vb中是begginer所以请写完整的代码。

很多我们

Dudi

I want to make a small simple program which will show few buttons, when each of tem is being clicked then automaticly user gets to appropriate software with specified path for example when I press button autocad it opens autocad which is in C:/autocad/autocad.exe when I want to open dura.apr lotus application which is in c:/dura/dura.apr it is being open after clicking on dura button when I click on sales folder it automaticly goes to sales folder which is in c:/sales/sales files/sales folder etc. It is easy to do it in excel, just using hyperlinks and it works fine, but I want to make it in vb so when I execute exe file I have menu with all buttons (autocad, dura, sales folder etc) the software stays on where other aplications are opened and it should also have exit button which closes it. can anyone help me, I have spend lots of time and I can only find how to open website linked to button. I am begginer in vb so please writte full code.
many thanx
Dudi

推荐答案


我想创建一个小的简单程序,它会显示几个按钮,当每个tem被点击时,然后自动用户使用指定路径获取适当的软件,例如当我按下按钮autocad时它会打开autocad当我想打开c:/dura/dura.apr中的dura.apr lotus应用程序时,它在C:/autocad/autocad.exe中,当点击销售文件夹时它点击硬盘按钮后它会自动打开到c:/ sales / sales files / sales文件夹等的销售文件夹。很容易在excel中做,只使用超链接,它工作正常,但我想在vb中,所以当我执行exe文件时有菜单的所有按钮(autocad,dura,销售文件夹等)软件保持在其他应用程序打开的地方,它也应该有退出按钮关闭它。任何人都可以帮助我,我花了很多时间,我只能找到如何打开链接到按钮的网站。我在vb中是begginer所以请写完整的代码。

很多我们

Dudi
I want to make a small simple program which will show few buttons, when each of tem is being clicked then automaticly user gets to appropriate software with specified path for example when I press button autocad it opens autocad which is in C:/autocad/autocad.exe when I want to open dura.apr lotus application which is in c:/dura/dura.apr it is being open after clicking on dura button when I click on sales folder it automaticly goes to sales folder which is in c:/sales/sales files/sales folder etc. It is easy to do it in excel, just using hyperlinks and it works fine, but I want to make it in vb so when I execute exe file I have menu with all buttons (autocad, dura, sales folder etc) the software stays on where other aplications are opened and it should also have exit button which closes it. can anyone help me, I have spend lots of time and I can only find how to open website linked to button. I am begginer in vb so please writte full code.
many thanx
Dudi





使用shell(< StringApplicationPath>,< Focus Mode>)




Use shell(<StringApplicationPath>,<Focus Mode>)



我想制作一个简单的小程序将显示几个按钮,当每个tem被点击时,然后自动用户获得具有指定路径的适当软件,例如当我按下按钮autocad时,它打开autocad,当我想打开dura时,它在C:/autocad/autocad.exe中。在c:/ dura / dura.apr中的apr lotus应用程序点击dura按钮后打开它,当我点击sales文件夹时,它自动进入c:/ sales / sales files / sales文件夹等的sales文件夹。在excel中很容易做到,只使用超链接并且它工作正常,但我想在vb中创建它所以当我执行exe文件时我有所有按钮的菜单(autocad,dura,sales folder等),软件保持在其他的应用打开它也应该有退出按钮关闭它。任何人都可以帮助我,我花了很多时间,我只能找到如何打开链接到按钮的网站。我在vb中是begginer所以请写完整的代码。

很多我们

Dudi
I want to make a small simple program which will show few buttons, when each of tem is being clicked then automaticly user gets to appropriate software with specified path for example when I press button autocad it opens autocad which is in C:/autocad/autocad.exe when I want to open dura.apr lotus application which is in c:/dura/dura.apr it is being open after clicking on dura button when I click on sales folder it automaticly goes to sales folder which is in c:/sales/sales files/sales folder etc. It is easy to do it in excel, just using hyperlinks and it works fine, but I want to make it in vb so when I execute exe file I have menu with all buttons (autocad, dura, sales folder etc) the software stays on where other aplications are opened and it should also have exit button which closes it. can anyone help me, I have spend lots of time and I can only find how to open website linked to button. I am begginer in vb so please writte full code.
many thanx
Dudi



嗨Dudi

您可以在此处找到代码



您好Dudi

您可以找到代码这里



嗨再次

我还是不知道怎么做: ((


我做了一个按钮,我有这样的代码


公共舱Form1


Private Sub Button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs)Handles Button1.Click


End Sub

End Class


当我点击按钮时,我应该怎么做才能打开C:\ autocad \ autocad.exe中的autocad。我知道这很简单,但我仍然看不到解决方案: ((如果我知道如何做一个我将设法链接其他软件。

多次获取帮助

Hi again
I still dont know how to do it :((

I made a button and I have such code

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

End Sub
End Class

what should I do with this to have opened autocad which is in C:\autocad\autocad.exe when I click on the button. I know this is simple but still I cannot see solution :(( If I know how to do one I will manage to link other software.
many thanx for help


这篇关于如何在Visual Basic中创建链接,将按钮与指定的程序连接???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆