Handling Folder / Shortcut Selection

May 9, 2009

I have an app that requires the user to select a folder, the app runs up/down that folder tree to read/write various files. All that works fine. To select the folder, I support three methods, a FolderBrowserDialog, drag/drop and also a text mechanism where the path can be typed/pasted into a textbox.The issue I have is handling folder shortcuts. Pasting the path is fine and drag/drop is fine because I can sort out what the incoming object is in code. But for folder/shortcut selection by dialog, I've ended up with two buttons, one being the FolderBrowserDialog for folders and the second an OpenFileDialog for shortcuts (set to display only .lnk files).From a users perspective, I think this is quite poor, it also 'looks' plain odd. It forces the user to check what type of folder object they want to use before they can select it. How can I permit folder OR shortcut selection with the same dialog? It seems that my only option is to build my own dialog, which could actually be quite involved, since I would need to replicate the File/Folder dialogs.

View 2 Replies


ADVERTISEMENT

File Selection Versus Folder Selection?

Aug 26, 2011

I am using this code to select a folder.how to do the same kind of thing selecting a file instead of an folder.

Private Sub PathButtonB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PathButtonB.Click
Using FolderBrowserDialog As New FolderBrowserDialog
With FolderBrowserDialog
.Description = "Kies die Folder waar hierdie ResepteBoek die Kunswerke vir sy Resepte moet gaan soek."
.ShowNewFolderButton = False

[code]....

View 4 Replies

VS 2005 Shortcut For Radio Button Selection?

Feb 17, 2010

I set an ampersand sign in from of a Radio button text. However the I could not select the radio buttons unless I used the mouse. In other words the shortcut setting is not working for the Radio button

View 3 Replies

Folder Selection - Enable The User The Ability To Select A Folder And The Folders Music Files Populate A List Box

Jan 6, 2009

Basically I am trying to enable the user the ability to select a folder and the folders music files populate a list box. I want two list boxes on the page, one with all the contents of the folder and then the other one for files selected from the first box. I have no clue on how to do this at all...

View 4 Replies

Multiple Folder Selection In Folder Browse Dialog Box?

Jul 7, 2009

how to do multiple folder selection in folder browse dialog box?

View 1 Replies

Add A Folder Shortcut To The Win 7 Taskbar

Oct 14, 2010

Can I add a shortcut to a folder to the taskbar? If so, what are the codes to do it?

[Code]...

View 1 Replies

Create ShortCut For A Folder In Program?

Jun 4, 2009

I use vb.net 2005 . I need to create a short cut for a folder. For example

I need create shortcut for "C:SourceFolder "in "D: DistenFolder" and also find

How many Shortcuts are present in this folder?

View 2 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

Detect If Folder Is Shortcut In Vista?

Jul 27, 2009

I have a program here that gets a list of directories from drive, and it works fine, but keeps listing the directories that are actually shortcuts/ junctions. For instance,[code]Will list all the directories(and files as well with .GetFiles) in 'c:\Users\All Users\', even tho 'All Users' is just a shortcut. This can lead to some problems, like 'c:\Users\All Users\Application Data\' lists all the files/folders in "All Users" including "Application Data", so it'll just keep recursing itself until it quits with an error. I can hard code it, and ignore that specific folder, but theres a few other shortcut folders that exist as well..So is there any way to detect and ignore those "directories"?

View 4 Replies

Putting Shortcut In Startup Folder

Jul 6, 2010

i want the program to run on startup using the startup folder, NOT the registry.i cannot find anything on the startup folder.whenever people ask about the startup folder, all the replies are about the registry. i am beginning to think that the startup folder is some kind of government secret.

View 1 Replies

Create A Shortcut And Copy It To The Startmenu Folder?

Apr 26, 2009

How do i make my program appear in the startmenu? My idea was to have the program create a shortcut and copy it to the startmenu folder, but how do i have it create a shortcut of it's self?

View 1 Replies

Error When Create Shortcut At StartUp Folder

Dec 15, 2011

I had the following error occurred when i want to create shortcut and copy to startup folder. [Code] I don't understand the error message box.

View 7 Replies

Use WSH To Create A Shortcut To A Folder In My Quick Launch Toolbar?

Jan 14, 2008

I have a Quick Launch Toolbar linked to a folder of shortcuts.In this folder I link other folders and applications that I use commonly.I'm trying to use WSH to create a shortcut to a folder in my Quick Launch toolbar, but the shortcut isn't being created correctly.I suspect my problem is that, evidently, Windows has two kinds of shortcuts to folders.Using Explorer,I navigate to my Quick Launch folder, and choose the File | New | Shortcut, supplying the name of another folder as a target, it creates the shortcut.Using Explorer, looking at the shortcut in the details panel, Win says the shortcut is of type "Shortcut". Looking at its properties, the type is also Shortcut, and looking at the Shortcut tab, the Target Type is "Folder" and the Target location is the path I supplied. Now create the shortcut another way.Locate the folder in Explorer, and right-click-drag it to the same Quick Launch folder, choosing to Create a Shortcut.Now, Explorer thinks the shortcut is of type "Folder" and looking at it's properties, the Type is Folder (Target Type isn't shown) and the Target does point to the real location.There isn't a Shortcut tab now either.Both are definitely shortcuts to the same folder (I've double-checked), but they work differently in Quick Launch.If you pull up the Quick Launch toolbar and hover over the second shorcut, Windows pops out a sub-menu that contains the folder's contents. However, there is no such functionality using the first shortcut, you would have to choose Explore from the right-click menu to view it's contents.

(Below, the "Work" dir is my Quick Launch toolbar's folder)Using WSH, I can create a shortcut that doesn't autoexpand as follows: Set WshShell = WScript.CreateObject("WScript.Shell")[code].....

View 2 Replies

C# - Placing A Shortcut In User's Startup Folder To Start With Windows?

Aug 2, 2010

I wanted to give my user an option for "Start with Windows". When user check this option it will place a shortcut icon into Startup folder (not in registry). On Windows restart, it will load my app automatically.

View 1 Replies

Error Handling & Copying Folder Structure?

May 2, 2011

Below is a tiny program I modified from an example Microsoft code tutorial. This program simply copies .flac and .mp3 files from one specified folder to another, and if the file is already there it simply does not copy the file. I would like to make 2 changes to the program:

How would I go about making the error handling work (i.e. not crashing the program when an invalid input is made)?Also, a big change I would like to make would be for it to copy the folder structure and all files in the original folder (At the moment, it only copies files that are directly in the original folder, not files that are in folders inside the original folder).

[Code]...

View 2 Replies

VS 2010 Quick One -publishing App Creates Shortcut In Wrong Start Menu Folder?

Jun 21, 2012

when I publish my app and run the setiup it places the shortcut under a folder in the start menu called Microsoft

View 1 Replies

Reference To Any Code Classes For Enabling Selection Of Folder Via A Dialog Window

Mar 30, 2006

I could use a reference to any code classes for enabling the selection of a folder via a dialog window.

View 5 Replies

VS 2008 Write A Program To Create A Shortcut In The Startup Folder Of A Different Program?

Jun 15, 2009

how i can write a program to create a shortcut in the startup folder of a different program. So i have one program on my computer that should run at startup, i just need another program to create a shortcut to it, and then copy this shortcut into the startup folder.

View 20 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

Call "shortcut" To File Or Folder?

Jan 13, 2011

Im using VB express 2010, can I call (use) a shortcut that exist to a file or folder?I have a userform with buttons that I wish to use to open files and or folder locations for browsing.

View 2 Replies

Extract Shortcut Icon Without Shortcut Symbol?

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

Data Grid Selection Load Form - Call A Stored Procedure With The Value Of The Selection

Feb 27, 2009

I am trying have a data grid selection populate a form. I am new to this.Basically I have a connection persistance object and I would like to call that and call a stored procedure with the value of the selection. The datagrid is bound to an object.

[Code]...

View 1 Replies

Listbox (20 Items) With Multi-selection And Label That Disply The Selection And One Button

Dec 25, 2010

I have a listbox (20 Items) with multiselection and label that disply the selection and one button. So I wrote (it works fine)

[code]...

Now when I click on button the label show lets say Item2,Item5,Item10,How do I take off the last ","

somthing like that Item2,Item5,Item10

I used to do: Dim s As String = Trim(Label1.Text)Label1.Text = s.Substring(0, s.Length - 1) but it give me an error converting intiger to string

View 6 Replies

Office Automation :: Range(Selection, Selection.end(xlDown)).Select In .NET?

Jun 16, 2009

osheet.Range("A1").Select
'The line below is the one I would like to know how should I write it in VB.NET:
osheet.Range(Selection, Selection.end(xlDown)).Select

[code]......

View 3 Replies

Visual Studio Macros: Loop Through Selection, Add .Append(" And ") To Each Line In Selection

Mar 18, 2010

Found this:

Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub

But I can't seem to figure out how to loop through each line of text in the selection.

View 1 Replies

IDE :: VS 2008 - Setup Project : Adding Folder Structure To The Program Files Folder?

May 13, 2009

I am using Visual Studio 2008 Setup project. I need to copy one folder and the sub folders into the program files but when I tried to copy or add the folder to "Application Folder" in File System editor, I am able to add only files and not folders.

View 1 Replies

VS 2010 Creating A Folder Inside Temp Then / Extracting File + Opening Folder

Dec 12, 2011

How would I create a dir Inside %temp%? Then extract the file to it and Open a That folder. So far this is my code.

[Code]...

View 5 Replies

Change Appliaction Folder Path From Program Files To Public Folder

Sep 27, 2011

how to change the install folder path in a setup and deployment project/Installer class from program files to C:usersPublic in windows 7 and allusers folder in xp.Want to add MVP with my name.

View 3 Replies

Create Exe In Build Output Target Folder Instead Of Default Bindebug Folder

Nov 21, 2010

I installed the new one. I then imported an old project made using vb 2008 EE.I found that a few errors were reported.In the project I addressed some function from a dll called "rsource.dll". I used the following function call:Public Declare Function rs_init Lib "rsource.dll" Alias "init" () As Double.The other different thing is the projevt was developed on a 32 bit OS but since then I have upgraded to 64bit (if this makes any difference). he other thing is where is the debugger PAUSE button. has it been removed from vb 2010?Also when i run debug it seems to create the exe in the Build output target folder instead of the default bindebug folder why is this?

View 5 Replies

How To Put A Text File From The Resources Folder Of Vb2008 To A Folder That Was Just Created Using Mkdir

Mar 10, 2009

Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click

If TextBox11.Text = "" Then Exit Sub
MkDir(Dir1.Path + "" + TextBox11.Text)
MsgBox("Folder Created:")
TextBox11.Text = ""

End Subok now the file i have is from my.resources.test1 put this file into the folder that wascreated after mkdir line of code i have tried differnt ways of doing it but dose not work. it seams that this whould be so easy i dont if its me getting a mind block or something

View 10 Replies







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