Creating A Desktop Shortcut?

Jul 27, 2010

How do I create A Desktop Shortcut ? Is there any particular command that will do it for me ?

View 3 Replies


ADVERTISEMENT

Copy Shortcut From Desktop?

Apr 22, 2010

What I'm trying to do is copy a shortcut from my desktop to my form. So the I would have a shortcut on my form just like the desktop.

View 2 Replies

Delete A Shortcut On Desktop?

May 29, 2011

I'm having issues with using this command.

Running: VS 2008
OS: Windows 7

I'm trying to delete a shortcut on my desktop.

I use the command:

Dim outdatedShortCut As String = System.Environment.GetFolderPath(Environment.SpecialFolder.Desktop) & "" & outdatedShortCutName & ".lnk"
Kill(outdatedShortCut)

What happens is whilst it DOES delete the shortcut from the desktop, it's stays on my desktop until I have done a refresh.

My question is: -

1. Is this normal?

2. If it is normal, what steps do I take to change this so it just deletes?

2a. Do I need to programmatically force a desktop refresh?

2b. Or is there another delete method that bypasses the need to refresh?

View 1 Replies

How To Create A 'Desktop Shortcut'

Aug 2, 2011

I am trying to create a 'Desk Top' Short Cut, for a Web Browser I created with Visual Basic 6. I will put it onto my website, so the public can download it (the Web Browser).*It will be an exe (Executable File).My short cut ( on the desk top) will*be a picture*ICON .ico file, which is a logo I created.I imagine it will be*stored*in the C Drive of most computers, in the Program Files. PATH: C:Program ilesHomeChannelTVHomeChannelTV.exe *I've tried to learn from many forums. The code I have created is below. I'm getting 1 error.

MyShortcut = CType(WshShell.CreateShortcut(DesktopFolder & ".lnk"), IWshRuntimeLibrary.IWshShortcut)
MyShortcut.TargetPath = Application.StartupPath & "C:Program

[code].....

View 4 Replies

IDE :: Create A Desktop Shortcut?

Mar 4, 2008

I have been asked to create a web application which would allow users to login to the system using a shortcut from the desktop. The short cut has to be user specific.

View 10 Replies

Create A Desktop Shortcut For Project

Jun 20, 2009

how can i create a desktop shortcut for my vb.net project that i've done.?my project is a Sudok game.. .i mean how can i open it without using Visual programs?

View 8 Replies

How To Create Desktop Shortcut Icon

Jul 25, 2009

I am working in VB.NET 2003. I have one exe file in a particular folder. I want to create desktop shortcut icon for that exe file. How can I do this?

View 1 Replies

VS 2008 : Display Desktop Shortcut Name?

Mar 5, 2010

If i drag 'n drop a desktop shortcut to a picturebox , how can i display its name on a mouse_hover event ? Or any other way.

View 5 Replies

Create A Desktop Shortcut To Application On Install

Dec 22, 2009

How do I create a desktop shortcut to my application when the user presses setup to install?

View 7 Replies

Desktop Shortcut For Click Once Deployed Application?

Aug 12, 2009

I would like to create a desktop shortcut for my clickonce deployed application.The IDE is VS2005 and there is no need for upgrading to 2008 yet.

View 3 Replies

Drag An Drop A Desktop Shortcut To The Form?

Feb 19, 2010

Is it possible to drag an drop a desktop shortcut to the form and then launch the program from there ? Is so how would this be done ?

View 39 Replies

Drag And Drop On A Desktop Shortcut Icon?

Jun 1, 2011

I found this thread[url]...

and I have encountered the exact same problem, that the desktop shortcut icon created by the Setup program does not work when dragging and dropping a file (in this case an Access-database) onto it,

while a shortcut manually created works just fine.

I do not understand the answer in the above thread. But, anyway I would like to find a way to solve the problem directly, preferably through the Setup program itself.

View 2 Replies

Enable Create Desktop Shortcut Option?

Sep 18, 2009

I have a client app written in VB (Visual Studio 2008) + VS 2008 SP1. I can see the option "Create desktop shortcut" under --- Publish > Option > Manifest but it is disabled.What do I need to do to enable it so I can have it checked before publishing it?

View 3 Replies

Setup Application Create A Desktop Shortcut?

Jan 15, 2010

I have a project that I've published to a network drive with a setup file that works great but I cannot get it to create a Desktop shortcut. I don't have the option in the publish settings to allow this and I cannot find code that will work for me. Does anyone have any suggestions how to have the setup file automatically create a desktop shortcut? I'm using Visual Studio 2008.

View 1 Replies

VS 2010 .net Create And Delete Desktop Shortcut?

Mar 24, 2011

I'm writing a vb.net (2010) app to extract a zip file in XP to a specific folder. That part works fine. Now I want to create a desktop shortcut to an application (if it exists I need to delete it first)

This should be an easy to find answer but I believe my eye is beginning to twitch!2 error messages: First Error: "Type expected" On Dim shortCut As IWshRuntimeLibrary.IWshShortcut = DirectCast(WshShell.CreateShortcut(FileName, IWshRuntimeLibrary.IWshShortcut), == this is a simple syntax error but I thought the type was the IWshShortcut ==

Second Error: On "With Shortcut" it fusses: " cannot refer to an instance member of a class from within a shared method or shared member initalizer without an explicit instance of the class."

[Code]...

View 3 Replies

Winforms - Create Shortcut On Desktop Without Installer?

Apr 6, 2011

I want to create desktop shortcut for exe file through program. I do not want to use installer to do this. Can a piece of code in program do this?

View 1 Replies

.net - Programmatically Added A Shortcut To The All Users Desktop And Can't Remove It?

Apr 12, 2011

In VB.NET I used wscript.shell to add a shortcut to the desktop. I didn't realize it created the shortcut on the "All Users" desktop, which means I can't delete it. I don't have admin rights as this is my work computer, and asking for admin isn't an option. WScript.Shell has a createshortcut method but not a remove shortcut method! I've been googling for days with no luck. Windows XP Pro 2002, SP3.

View 1 Replies

Add A Desktop Shortcut Icon To Inside The Project Settings?

Nov 25, 2010

I just created a game program out of VBE2008 and did the build process to turn it into a .exe file.When I did the build function I apparently missed the step of attaching an icon to the project.Now when I do a desktop shortcut to the .exe file there is no pretty icon - just an ordinary looking window box.How do I add a desktop shortcut icon to inside the project settings?

View 1 Replies

IDE :: Add A Function To Program That Adds A Desktop Shortcut When Installing

Aug 20, 2009

I am trying to add a funktion to my Program that adds a desktop shortcut when installing.I get a shortcut but it doesnt behave as the program meny shortcut.It doesnt check for newer versions as tje program meny shortcut does.I've been looking at other code but I dont understand how it works. And I dont get it to work.[code]

View 4 Replies

Passing Parameters And Bug In The .Com Object For Making A Desktop Shortcut

Feb 9, 2011

Here's the code that is causing my problem, I have no idea why though. All necessary services have been imported.

'Creates Prompt File
Sub CreateFile()
Dim createstring As String = ""

[Code].....

View 2 Replies

VS 2008 - How To Get Desktop Shortcut Icon Names Into String

Apr 8, 2009

How can I get all the names of the shortcuts icons in the desktop into a String?
Like: Computer, Microsoft Office Word 2003, Internet Explorer....etz.
I tried to use "My.Computer.FileSystem..." , but didn't find a way.

View 3 Replies

Creating Shortcut Without IWshRuntimeLibrary

May 27, 2010

I have a simple .net program that would only require .net framework to run.There are no third party dll or references. This program does some work and creates a shortcut.To my knowledge , it requires IWshRuntimeLibrary to create a shortcut. Because its com based ( windows scripting host object model ), adding a reference to it creates an interop file in my bin folder.So when the application runs , it looks for Interop.IWshRuntimeLibrary. dll in the current location.It works correctly if interop file is there. But the file will not be present in the user system.

View 2 Replies

Creating A Keyboard Shortcut Within The Form?

May 4, 2009

How could I create a keyboard shortcuts to call some of the functions on my form? For example, I have a media player that opens media files:

Private Sub Button_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click
OpenFileDialog1.ShowDialog()

[code].....

View 2 Replies

Creating A Shortcut In .NET Compact Framework?

Mar 29, 2010

I'm sure this has probably happened to most people but I've run out of UI space and need to create a hotkey or some similar situation to run a method or function.

View 3 Replies

Creating Shortcut To Startup Folder?

Mar 8, 2009

How would I create a shortcut of my exe file when its run, I can work out the directories and stuff but how would I actually create the program that it starts when windows boots?

I have done quite a few google searches and have found nothing to interesting or useful but I did find out that there is two main ways of doing this registry or startup folder and im more pulled into the startup folder because I dont think that I yet know enough about controlling the registry to be confident of using code like that, so I fall to my other alternative using the startup folder to trigger my program, I read somewhere that this doessn not work for vista but im not sure of that. What I would like to as is how you actually create a shortcut as I cant really understand VB6 Code very well its all I could find.

View 3 Replies

Forms :: Creating Shortcut Keys?

Jul 17, 2009

So I've been trying to make a form in which a few of the buttons have keyboard shortcuts such as the F keys as well as the arrow buttons. Here's the code I've been using

Private Sub frmOrganizer_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If obSelect = True Then

[code].....

View 1 Replies

Quotes In Quotes Creates Error That Stops The Making Of A Desktop Shortcut?

Dec 27, 2011

This should create a desktop shortcut but instead it spits out an error that is because of the quotes inside quotes. They need to be there, I know this is the problem as I have tried without them and it has worked. Another problem though is that it creates the shortcut (when Idon'thave quotes in quotes) but wraps the whole TargetPath in quotes making the shortcut unusable. Here is my code:

Dim input As String
Dim s As String = Environment.GetEnvironmentVariable("UserProfile")
input = TextBox1.Text

[code].....

View 5 Replies

Running Application Can Know Name Or Other Info Of Desktop-shortcut That Started Application?

Apr 9, 2011

Let's say 10 desktop shortcuts, all with different names/icons, point to and can start the same exe application from the same directory. Is there any means for the application to know the distinct name of the shortcut that was doubled_clicked. Also is there any means for a running application to know if it was started by command line, by a double_click on the exe, by a double_click on a shortcut that points to it, or by another process' call?

View 4 Replies

Shortcut On Desktop Takes To Application Folder Not Running The Application?

Oct 21, 2010

I am trying to use Setup project. Want my setup to create a desktop shortcut with my application.I donot understand how to do it. Clicked on User's desktop, I created Shortcut to User's desktop, changed the properties Target and Working Folder as 'Application Folder'But it does not connect with MyApplication.exe When I ran the setup and tested Desktop short cut, it took me to the folder where application was installed, instead of running the application.How to make the application run using this shortcut?

View 1 Replies

Creating A Desktop Application In .net?

Jun 21, 2010

acctually i m creating a desktop application in vb.net so on the data insertaton page i had got an error that is "the ConnectionString property not initilized" so i m posting all my code here.

[Code]...

View 11 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved