473,657 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create link in visual basic that will connect button with specified program???

5 New Member
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
Jan 4 '07 #1
12 20370
hariharanmca
1,977 Top Contributor
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



Use shell(<StringAp plicationPath>, <Focus Mode>)
Jan 4 '07 #2
willakawill
1,646 Top Contributor
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
Hi Dudi
You can find the code here
Jan 4 '07 #3
duudii
5 New Member
Hi Dudi
You can find the code here
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(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

End Sub
End Class

what should I do with this to have opened autocad which is in C:\autocad\auto cad.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
Jan 4 '07 #4
hariharanmca
1,977 Top Contributor
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(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

End Sub
End Class

what should I do with this to have opened autocad which is in C:\autocad\auto cad.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


Public Class Form1

Private Sub Button1_Click(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click
shell("C:\autoc ad\autocad.exe ",vbMaximizedFo cus)
End Sub
End Class
Jan 4 '07 #5
hariharanmca
1,977 Top Contributor
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(B yVal sender As System.Object, ByVal e As System.EventArg s) Handles Button1.Click

End Sub
End Class

what should I do with this to have opened autocad which is in C:\autocad\auto cad.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

Shell will open Exe format Files through VB coding.... Ok
Jan 4 '07 #6
duudii
5 New Member
Shell will open Exe format Files through VB coding.... Ok
Ok, it works with exe files, but when I have assigned dura.apr lotus approach it doesnt work, or when I have assigned specified .doc file or draving and photo (I need all that there) I hink that I need some kind of recognision of file type and appropriate software. I cannot assign folder as well like in hyperlink in excel (when you specify path Y:\Sales Files\Quotes Masters then it (excel) opens this folder, I want to do the same in visual basic)
One more thing, I have forgotten how to compile visual basic file into .exe file, I have new visual basic 2005 express edition, hould I select it somehow at the begining? I was using vb 3 years ago and I have forgotten everything :(
many thanx for all your help.
Jan 4 '07 #7
hariharanmca
1,977 Top Contributor
Ok, it works with exe files, but when I have assigned dura.apr lotus approach it doesnt work, or when I have assigned specified .doc file or draving and photo (I need all that there) I hink that I need some kind of recognision of file type and appropriate software. I cannot assign folder as well like in hyperlink in excel (when you specify path Y:\Sales Files\Quotes Masters then it (excel) opens this folder, I want to do the same in visual basic)
One more thing, I have forgotten how to compile visual basic file into .exe file, I have new visual basic 2005 express edition, hould I select it somehow at the begining? I was using vb 3 years ago and I have forgotten everything :(
many thanx for all your help.

You want Make EXE of VB6 or VB2005
Jan 4 '07 #8
duudii
5 New Member
You want Make EXE of VB6 or VB2005
I want to make an exe file in visual basic,kind of linking software. When I will click on it I will have a window with several buttons. When I will click on button autocad then I will go to autocad.exe, but still the program will be running so If I want to go to lotus approach file then I just click approach button, when I want to go to sales folder I just click on sales folder button and additionally an exit button to finish and close this vb application. I did it all in excel and it works as hyperlinks perfectly, but I want to have it in window with nice buttons that is why I choosen visual basic. It was so easy to do those hyperlinks in excel, so I expected that I will just draw button click on it and write path in visual basic. I hope you can understand now better and help me.
cheers
Jan 4 '07 #9
hariharanmca
1,977 Top Contributor
I want to make an exe file in visual basic,kind of linking software. When I will click on it I will have a window with several buttons. When I will click on button autocad then I will go to autocad.exe, but still the program will be running so If I want to go to lotus approach file then I just click approach button, when I want to go to sales folder I just click on sales folder button and additionally an exit button to finish and close this vb application. I did it all in excel and it works as hyperlinks perfectly, but I want to have it in window with nice buttons that is why I choosen visual basic. It was so easy to do those hyperlinks in excel, so I expected that I will just draw button click on it and write path in visual basic. I hope you can understand now better and help me.
cheers
in Shell you can Open Exe format files only and if you want to open other file format like word or Exel etc.,., you have to bind .dll files to open through VB.
Jan 4 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
752
by: Ben | last post by:
Hi everyone, Now I am using Visual Basic.net to write a program but having some headaches. The situation is as follows: I am using ODBC connection to connect one database( non-SQL server) , which has over 20 tables and each table has lot of fields. My aim is to setup a button, everytime when the button is clicked, the selected tables through the ODBC connection will be copied to a SQL server 2000 ( Both the data and table...
7
8850
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I want my users to be able to select a report, click on a command button on a form, which will then automatically create the report as a pdf file and save it to the user's machine. I am using Adobe Acrobat (5.0 I think) and have Adobe Distiller as a
0
2620
by: Jay Douglas | last post by:
Hello, I'm trying to create a Data Links Property window that behaves just like the dialog box in Visual Studio .Net for MS Sql Server connections. I've found a lot of examples that use DataLinks classes from "Microsoft OLE DB Service Component 1.0 Type Library" and the Connection object from ADODB. However, when setting the connection string using these classes the connection string always returns a really basic connection string with...
6
2291
by: Frank Wilson | last post by:
Tom, It sounds to me like ASP, not ASP.NET is handling the request for WebForm1.aspx. This is most likely an IIS config issue that may have been caused by order of installation or reinstallation, or possibly even something that happened in IIS before .NET was installed. Here is a way to prove or disprove my theory:
3
17253
by: The Woo | last post by:
Can one programatically create a file folder which has the same name as a key field, using a command button? Or, Can there be a a command button which opens up a directory tree to a specified location. I'm thinking this is a visual basic-related question? Why? I have a client tracking database. When the client's record is
7
3964
by: wally | last post by:
I have Visual Studio 2005 Pro. I installed SQL Express 2005 and rebooted. But, when I right click on "Data Connections" in the Server Explorer and choose "Create New SQL Server Database..." and attempt to create a new database on the local PC, I get the following error "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under default...
10
8195
by: Steve | last post by:
I am trying to create a DLL in Visual Studio 2005-Visual Basic that contains custom functions. I believe I need to use COM interop to allow VBA code in Excel 2002 to access it. I've studied everything I can find on COM Interop and .NET. I've also tried many of the 'Walkthroughs' on the MSDN site relating to COM add-ins, .NET and Office XP but am unable to get even these working in Excel 2002 or Word 2002. I've installed the Office XP...
3
18700
by: creative1 | last post by:
Here is how you create a complex data report that involves parent and child commands and you can update information at runtime. Its pretty straight forward to work with simple queries; however, working with complex reports is tricky Assumption: Reader of this article have basic knowledge of creating data reports. Creating a Parent-Child Command and create a DataReport Suppose we have a database called company with two tables ...
0
8420
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8324
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8842
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8740
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8516
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7353
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4330
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1733
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.