Dragging ListViewItem To Windows Explorer To Copy File But It Copies To Form
Jan 11, 2012Dragging ListViewItem To Windows Explorer to copy file but it copies to form
[Code]...
Dragging ListViewItem To Windows Explorer to copy file but it copies to form
[Code]...
How do you drag a listviewitem, to desktop, windows explorer, Ect...
For example, i got a listviewitem in a listview, and the text is the name of a file, and the Tag the filename, in a string... When i drag the item, to the desktop, or a folder in Windows Explorer, it will automaticly create a shortcut or something...
How do you drag a listviewitem, to desktop, windows explorer, Ect...For example, i got a listviewitem in a listview, and the text is the name of a file, and the Tag the filename, in a string... When i drag the item, to the desktop, or a folder in Windows Explorer, it will automaticly create a shortcut or something.
View 1 RepliesI want to make a program that is similar to Windows Explorer. It will have a button that when you click it it opens a FolderBrowserDialog and it will have an area that displays the contents of the selected folder. I want to have a label that displays the current folder path (i.e. 'USERDocuments...') and I also would like a feature to search all files on the computer.Also, is it possible that when I click on a file in the contents of the selected folder it displays its information (i.e. Name, Size, etc.)? And can I also make it so that if you double click on another folder in the current folder's display it opens that folder? And can I have a button to go up one directory?
View 1 RepliesSo i am having a bit of a problem.. What i want is for my application to show the panel in the from to display a windows explorer selection.. Look here
You see the panel 2 in here... Well the panel 2 needs to display this...
Is this possible you know like with a library or an extension or something.. Or do i need to make my own System for viewing files..???
1- I want to know what's the windows service project and how i can use it.
2- I want to know how i can making tool bars for my windows explorers , IE explorer and to fire fox internet explorer.
3- I want to know how i can making add-ons for my VS 2005.
4-Can i change my Form Opacity Without Changing My controls Opacity
I have searched for the past 2 hours to see if there is a control available that will mimic windows explorer. I realise it can be created using TreeView and ListView controls, but this is an incredible amount of work for something that I would have thought would already be available. VB 6 had the DirListBox and DriveListBox which would have made this easier but without the right click context menu
If I had to create this myself, how would I populate the right click context menu to mirror the options available by explorer?
If you look at CDBurnerXP or MagicISO, they have what I am trying to achieve, with the layout and a right click menu containing the same options available in explorer.
Requirement is to drag a text file from Windows Explorer and drop into a RichTextBox opened, that is so the text can be read amended etc
View 3 Replies[code]...
.i would like to load win.explorer with that.File.Selected=True
I have my registry set up so it will call my application when a certain filetype/file extension is double clicked, however, as of now I can only get my program to open up those files if it was already closed. I am currently using the [URL] to get the passed files.
View 2 RepliesAn application data file, created by my own VB program, is visible to read and save from that application, but is not visible from Windows Explorer or Notepad. The icon, visible from my VB program, shows a lock. How can I remove the lock and see the program with Windows Explorer. (I need to copy to a another computer to use in a workshop next week.)
View 2 Repliesi need something simplei tried using webbrowsers to view files, had 5 different browsers in a tabcontrol and it seemed to slow down the pc.. hmmm.. so, maybe the basic vb coding will do..although it was easy w/webbrowsers, just WebBrowser5.Navigate("C:Documents and SettingsOwnerDesktop ru filesemulators") and it was done... anyways,
View 7 RepliesMy Program is selected as the default program in the registry for any RTF file that is double-clicked. I want my program to load the RTF file when I double-click it in windows explorer, however, I also have my program set up so that it always opens the last file I had open, which is stored in an INI file. I do not know how to detect that a file have been double-clicked in Windows Explorer within my program as it loads (FormMain_Load), and then load that file instead of the last file open.
View 4 RepliesI have made a text editor in vb2008 and I need it to get it open a text file when I double click it in windows explorer
View 6 RepliesThe code below is able to process a path such as, "C: est est.txt". And open its root, "C: est". But how would you highlightselect test.txt? Do I need to work with the windows shell specifically.
vb.net
Try
Dim item As ListViewItem = Me.ListView1.SelectedItems(0)
[Code].....
I am having this strange thing happen where I have a Module that contains multiple classes in my project. In the Solution Explorer, the module shows up as a Windows Form and if I double click on it to open it, it tries to open the Form Designer. What could be causing VS to think that it is a Windows Form instead of a module?
[Code]...
I am newbie to vB .NET.I am developing an application for PDF files merge and split using vb .net (Visual studio 2008). Already i have included options for drag and drop and browse button to input the pdf files. Is there a way we can access global file select event and keyboard events to easy inputting the pdf files or any other files types??Example:if i use left mouse click along with control button the progrm will include the pdf file in the application form by getting the file path and file type information from windows explorer.
View 3 RepliesI am having a namespace extension implemented, which is visible in "MY Computer". I want to write automated test cases to browse through the same. I am able to open the explorer window till the namespace extension. as -
Process.Start("explorer.exe", "shell:::{CLSID of my namespace }")
next I want to search for a particular folder name inside the window opened. For example if i give input as "temp", then my mouse should move to "temp" folder in the namespace explorer window. then I double click on the mouse's current position and enter that folder. next i give input as "doc1.doc", then my mouse should be able to locate & move to "doc1.doc" file. Also getDirectory or GetFile etc APIs won't work because I don't have a standard drive associated with my namespace & don't have a relative path either.
I don't know if I have gone blind, or if I am just searching in the wrong place, but what is the cursor that Windows uses for standard dragging, and where is it found? I can see the icon that is used when something is dragged over a control that is not a drop target, but not the control that is used for dragging elsewhere.
View 16 RepliesCopy Windows Form from projact A to project B This looks a trivial task, but using VB 2008 Express edition:
1 - If I click Solution - Add - Existing And hand pick the 3 form files (the .vb, the .resx and the .designer.vb) then I can see those 3 files as textfiles, not as a "real" VB form!
2 - I want to duplicate Form1 to create Form2 that is slightly different.
I am using the below mentioned code in my VB.net application to print two copies of pdf document.
[Code]...
Yesterday I opened Visual Studio (2008 v 9.0.30729.1) and all the winform classes in my project display with class module icons with the little 'VB', instead of form module icons with the little form icon!
When I double click on a form module, the form designer doesn't open, just the code module.
When I run the project, it runs fine. There are no errors. The project builds fine.
I did Project --> show all files, and I can see the designer and resx files below the form module which doesn't look or act like a form module.
I can't open my forms to design them!
Im trying to read a usb in a port using a file explorer. does anyone know how i can use the file explorer form to browse files in multiple drives that i specify? and how can i read and browse a usb port in vb.net (i.e. Write files to a usb or create an app directory on the usb.)
View 5 RepliesI have some simple vb.net code that I use to copy a file between 2 servers.
IO.File.Copy(fromFileName, toFileName, True) ' Overwrites existing files
That works fine when both machines are Windows XP.
What would I need to do differently if 1 of the machines happens to be a LINUX box?
I found this code which alows you to copy files using the windows api, this code works perfect untill the directory that you are copying from contains sub folders (which i need to be able to do). I was wondering if anyone could point me in the right direction if not sugets an alternative.
[Code]...
the user has the option of dragging several pictureboxes around the form. when he lets go of the mouse, the picturebox will take on a new position on the form.
i would like to implement the following:
on mouseup, if the picturebox position is within some amount maybe 50 or 100 (i dont know what units VB.net) uses, i would like it to be dropped exactly in a defined position. sort of like if you play checkers on yahoo games, you dont have to place the piece exactly on the square only approximately.
Been a while since i've bothered you gentlemen with my questions, but im back! So, I want to know, how I would be able to drag a picturebox around a form, liek a drag and drop functionality, but I dont want to move folders. Just move it around the form.
View 4 RepliesI'm trying to copy a file that I made that contains license information to system32 directory. My problem is I get access denied. here is the code I'm using
Dim formatter As New BinaryFormatter
Dim fileWriteStream As Stream
fileWriteStream = New FileStream(My.Application.Info.DirectoryPath & "" &
[Code]....
I found a script online to copy some files whilst also displaying a progress bar to the user. I wondered if it was possible to automate this process so the file copy initiates as soon as the program launches and then closes once completed. VB is not my strong point as I usually code in c sharp.
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.IO
Public Class Form1
[Code]...
working on a vb.net project I need to handle the explorer's copy process, take the file list, and put it in my application to complete the copy/move
View 8 Replies