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
ADVERTISEMENT
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
Aug 28, 2009
Im creating a form that will allow you to drag a shortcut from your desktop and drop it into the form, for a desktop enhancement.I have the following code and it compiles without error but wont let me drop a shortcu
Private Sub drop(ByVal sender As Object, ByVal dropped As DragEventArgs) Handles MyBase.DragDrop
Me.DoDragDrop(dropped, DragDropEffects.Copy)
[code].....
View 2 Replies
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
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
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
May 31, 2012
Is it possible to (without a mile of code) Drag and drop files from a datagrid to the desktop or open folder?
I have tried this:
Dim sFile As String = "D: est.pdf"
C1Grid_Documents.DoDragDrop(New DataObject(DataFormats.FileDrop, sFile), DragDropEffects.Copy)
But no file is created.
View 8 Replies
Jul 15, 2011
I have a ListBox control, that contains a few items that display attachments (files or directories). I have successfully allowed users to drag and drop items from their desktop to the ListBox , but I have not been able to allow the user to drag and drop items from the ListBox to their desktop. Is this possible?
View 1 Replies
May 20, 2009
This is a little diffrent from your standard drag and drop, but I am trying to find out a way to support drag and drop, from a list control, which is displaying a list of files, held as "blobs" in a SQL database (compressed data in my own format). When the form is opened, I obtain a list of all the file names within that given table in the database, and display it to the user in the list view control. The user then has the option of dragging that ListItem from the ListView on to the dektop (or other directory location). Upon doing so, I need to be able to read the data from SQL, decompress the data (in my own format) and then save it as a file at the dropped location.
My main problem is detecting when the ListItem is dropped outside of my application, as I want to use this dropping event to trigger the code in to obtaining a copy of that file from the database, and save it in to the "dropped" directory, where ever that may be.
So Im mainly looking in to how I can "see" the final location where the item is dropped, and how I can start off the drag and drop operation in the first place with no initial data (since I have not obtained the file at the start of the operation). Getting the file at the start of the drag and drop operation intoduces "lag" while the application makes the trip to the SQL database (via web service) and obtains the data, so I need to carry out that trip to the database, at the end, while still allowing "Windows" to act as if I am dragging and dropping a file...
I did consider multi-theading, and downloaind the file from the database while the drag and drop operation is in progress, but then it becomes a race between the data being obtained from the database, and the user dropping the file.
Im using VS2005, SQL 2005 where the file is stored as a blog. SQL is on another PC running a web service which I interact with, to allow my application to talk to the database over both a LAN and WiFi via the internet. Compression and de-compression is handed at the client side application (for the file itself, in order to reduce the footprint created by the internet traffic) , where the user interface is displayed.
View 6 Replies
Nov 18, 2009
I am currently working on a drag and drop project and I was wondering if there is a way to drag picturebox1 and drop it in picturebox2; that will snap to a specific location in the picturebox2?
View 2 Replies
Aug 27, 2009
ListView Drag&Drop allow to Drag&Drop between form??
Public Class frmModule
Private Sub ListView1_ItemDrag(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ItemDragEventArgs) Handles ListView1.ItemDrag[code]....
Can it be drap and drop item to other form control??How to write the event when mouse up at the other form control?
View 2 Replies
Jun 5, 2010
I'm trying to extract the icon from a shortcut (lnk file), but I end up with the shortcut symbol in the lower-left hand corner of the image. How can I extract a shortcut's icon without this symbol?
Here's the code I'm using:
Dim ico As System.Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon("C:shortcut.lnk")
View 3 Replies
Oct 31, 2010
I am using Excel 2007, VS2008 Pro.I am building a VSTO Add-in that requires "drag and drop from Excel cells to a drag-enabled task pane".So far I notice that I can only drag and drop within the cells themselves. It does not allow me to drop into the task Pane or drag past the sheet limits.(http:)[url]...
Note: The task pane has drag drop enabled, I ahve already tested I can drag/drop from task pane to excel but I need to do this the other way around?
View 1 Replies
May 25, 2011
I am trying to figure out a way to include the listview's tag field when dragging one listview's subitems into another listview. I am hoping someone here has experience with this. My Listview drag code is below - the two listviews that I am dragging subitems into or from are LV1 and LV3. Also, this is being done in Visual Basic 2008 and the project is a windows application.
[Code]...
View 4 Replies
Nov 21, 2011
I have an issue with the icon displayed on the desktop. I have used the project's properties, application form and used the dropdown menu under icon to associate an Icon to the application. I have done this loads of times before and it has always worked.
View 6 Replies
Oct 20, 2010
drag and drop nodes within the same tree (not between trees) when users drag and drop nodes within the tree, give them the option to move the original node to a new location within the tree OR to just copy the original node in a new location (seems complex but I have a month to figure this out). change the system default blue highlight for selected nodes to another color change the system default cursors for invalid and valid drops (instead of the circle with slash indicating invalid target, i want a red minus) and (instead of the little plus sign with little box indicating a valid target, i want just a big green plus sign) add a red insert line to indicate where the node would be dropped within a tree also drag and drop the text of a node from the tree to a textbox add a "folder" image next to parent nodes and a "document" image next to children nodes
I have looked through the internet but I am having difficulty sorting through all the information available (I see a lot of information for Visual Basic 5 and 6, and those codes don't work for me in visual studio 2008). I can email anyone my code I have so far.
Public Class Form1
Private MouseIsDown As Boolean = False
Public Sub TreeView_ItemDrag(ByVal sender As Object, ByVal e As ItemDragEventArgs)Handles TreeView1.ItemDrag
[Code]....
View 4 Replies
Apr 5, 2011
Is it possible to reorder the elements of a drop down list (combobox) via drag and drop?For example, when the list is dropped down, I want the user to be able to drag the items up or down to reorder them. I tried this (and some google searching) but I'm wondering if its just not possible:
Private Sub cmbClassLists_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles cmbClassLists.MouseDown
If cmbClassLists.DroppedDown And Not cmbClassLists.SelectedIndex = -1 Then
[code].....
View 2 Replies
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
Jul 27, 2010
How do I create A Desktop Shortcut ? Is there any particular command that will do it for me ?
View 3 Replies
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
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
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
Dec 16, 2011
I have an vb.net application. For this application there are 4 users. so for this 4 users different user names will be there Also users will have the different shortcut icons(from the base exe they created 4 shortcut and renames themselves.) As soon as they click on ok button in login form i am storing the details in registry. if they restared the application, login form will show the last user name(which is stored in registry). Here the requirement is user1 should not get user2 username when he login. Here I have to store the login information of every users in registry separately and if user1 is clicking the shorcut of my application(i.e clicking on shortcut of MyApp.exe) then he should get his details. Here i can differentiate by using which shortcut icon is clicked. Based on that name i can say this user is trying to log and i have to show his user name in login form username textbox.[code]...
View 20 Replies
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
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
Dec 16, 2011
I have an application in vb.net. after building i will be getting the exe. once i create the shortcur for this exe consider shortcur of myexe.exe in desktop, how can i get the name of the shortcur icon (i.e "shortcur of myexe.exe") through my vb.net application. Here i have below scenario.I have three shortcut(my1.exe,my2.exe,my3.exe) for an exe named as "My.exe" if i click on my1.exe i should get the shortcut icon name as my1.exe if i click on my2.exe i should get the shortcut icon name as my2.exe if i click on my3.exe i should get the shortcut icon name as my3.exe So based on shortcut name i am proceeding different thinks withing the application.
View 3 Replies
Mar 29, 2010
I added the icon in my forms project etc. But when i go to view the project after build, when i click on it the icon does not appear. and the shortcut doesn't have the icon.
View 2 Replies
Dec 22, 2009
How do I create a desktop shortcut to my application when the user presses setup to install?
View 7 Replies
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
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