Passing Group Of Selected Files To .net App?

Nov 22, 2011

The project I'm working on is essentially writing a new front end for the 7 Zip compression using 7Zip's downloadable SDK. My main issue that I'm working out now is trying to figure out how to integrate this into Windows Explorer.

I want to be able to select a group of files in a folder or Windows Explorer, right click them, then choose various options such as "Compress", "Compress and Test", etc. By clicking either of these options, I would like my VB.net app to open and perform the function associated with the specific menu entry. I imagine there are two parts to this, first how to get the options to show up in the right click menu, then how to pass the selected files to a VB.net application. I don't even know where to begin with this.

View 7 Replies


ADVERTISEMENT

Asp.net - Get The Text Of The Selected Item In A Radiobutton Group?

Feb 1, 2011

rather than having all the if statements can you have one line that says Label1.text = "You selected " & RadioGroup1.Text

Sub SubmitBtn_Click(Sender As Object, e As EventArgs)
If Radio1.Checked Then
Label1.Text = "You selected " & Radio1.Text
ElseIf Radio2.Checked Then

[code]....

View 3 Replies

Checking If A Radio Button Has Been Selected Within A Group Box?

Jun 12, 2009

How do i checked that within a GroupBox 1 radio button has been selected? I want to provide the user with a message box telling them they have not made a selection from one of the 12 radiobuttons within the group box?

View 3 Replies

Default Radio Button Selected Inside A Group Box?

Jan 8, 2010

I have a WinForms application (VS 2008, .NET 3.5) that has a form with two different group boxes, and inside of each group box are different sets of radio buttons. When I run the application, the first group box automatically has the first radio button in it already selected, and the second group box does not have a radio button selected by default.

I have looked through all the properties of the radio buttons and the group boxes, and cannot figure out what the difference is between the two.I would like both group boxes to have all radio buttons unselected when the form is first opened.Also, I looked through the Designer.vb file for the form, and could not find anything unusual going on in there either.

View 4 Replies

Reading A Selected Item In Listbox With Members Of AD-group

Sep 12, 2010

I habe a little problem with my code. After 4 years, I must now expand and adapt an old program with new features for Windows 7.I use the great snippet from Chris to query the members of a active directory group.Now I want to use a selected item from the Listbox for a further search, but it doesn't work. I check the selction with a Textbox, but I get an error message:"Invalid Conversion from DirectoryEntry to String".[code]Until now I was able to read the selected items from the listbox in a Textbox or a query.

View 1 Replies

Passing A Selected Row Of DGV To Another Form (textboxes)?

Mar 8, 2009

I hav a datagridview,which looks like this:ID

[Code]...

i doubleclick a row,lets say highlited row...then this row value should appear to another form which hav 4 textboxes ( id , name, marks and grade).

View 2 Replies

VS 2010 : Passing Selected Row In DataGridView?

Sep 7, 2010

Im currently creating a point of sales system, I'm having problems in passing selected row in datagridview to another datagridview & text box but in different form.

POS Form

- Selected Row in Product Browse Form must be passed in this DataGridView.

- Selcted Row in Customer Browse Form must be passed in CustomerName and Customer Address Textbox.

[code]....

View 3 Replies

Passing Selected Data To Another Form And Then Retrieving Details?

Jun 22, 2009

I'm new to Visual Basic 2010, I programmed in VB a long time ago. getting back into it. I have a SQL 2008 database and I want to use Visual Basic 2010. what I want to do is bring up a form with a group of products for my company. Based on the users selection they will put a check mark next to the product and then submit the query/data filter/ selection.passing that information to another screen with the details of all the sales for that item.

View 6 Replies

Rename A Group Of Files In A Directory?

Oct 22, 2011

rename a group of files in a directory - I have 100's of files in a directory that have a eight digit number with an underscore then a nine digit number.....

12345678_987654321.tif

All I need is to delete the 12345678_ from all the files (numbers will be different in front of the underscore)

View 2 Replies

Renaming Group Of Files Using Loop In Visual Basic?

Jun 25, 2012

I currently have these group of files I want to rename:

C:Users medinaDocuments estenviromentTestfolderfile1-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile2-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile3-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile20-1111.doc

I have a text box on my form where a I would enter a string of text which will replace the '1111' to whatever the string is in the text box field.

So for example, On my app, in the text box field, I would enter 2222, then when I click on button1, it will rename file1-1111.doc to file1-2222.doc, file2-1111.doc to file2-2222.doc, etc.....

This is my VB code I currently have:

[Code]...

View 4 Replies

Sorting Group Of Files Using HashTable - Visual Basic

Jan 25, 2012

how to sort the group of files in the directory using Hashtable by values?

i'll have more than 500 no of files in the below format:

prod_orders_XXX_<TimeStamp>.dat

XXX = symbol of the product and the length may varies.
<TimeStamp> = date and time

Multiple files for the same XXX are possible with different time stamps.

Here are some examples:

prod_orders_abc_20122001083000.dat
prod_orders_abc_20122001083111.dat
prod_orders_xyz_20122001093157.dat

[Code]......

I have posted a similar question before but this time i need this specificly using Hashtable.

View 1 Replies

Passing Structure As Argument Through Files / Functions

Jun 21, 2012

I can't get to pass structure as argument through subs/functions in different files of single vbnet project like I use to in earlier MS basic versions.[code]File "mysetup.dat" is reachable and data is saved correctly what I can see with HxD.But read part seem's to not work as expected. Please any help on reliable passing structure as argument without too much public elements based on upper example.

View 1 Replies

Write Binary Files Or Passing Data Into Database?

Nov 2, 2009

What do you think what is faster:

1. writing 1000 records in a binary file on a server? or

2. passing the same 1000 records in a database on a server?

and

1. search a specific record in a binary file? or

2. search the same specific record in a database file?

View 2 Replies

See If Current User's Group Name Matches A Specified Group Name Using Active Directory Roles And SID's?

May 3, 2011

I'm trying to match up a specific group name and see if it exists for the currently logged in user using Active Directory roles. If the Group Name exists for the Current User, I want that group name to be displayed in a drop down list. Example: If current user is in BIG Group, display BIG in drop down list.Problem: All I am getting is SIDs and I'm not able to get anything to match up to the group name and nothing will show up in the drop down list.I also get the following Error:Error: Object variable or WIth block variable not set.How do I fix this?? here is the code I am using:

Private Sub GetMarketingCompanies()
' code to populate marketing company drop down list based on the current logged in users active directory group that

[code].....

View 3 Replies

Enumerate If An Active Directory Group's Member Is User Or Another Group

Jan 31, 2011

Enumerate if an Active Directory group's member is user or another group

View 1 Replies

Add Selected Files From Listbox1 Over To Listbox2?

Apr 19, 2012

So I have two ListBoxes. Listbox1 gathers files from a directory and I have an add button to add selected files from Listbox1 over to Listbox2.

Is there a way to manually sort these items? Maybe with an up down buttons?

The reason I'd like to sort/reorder is I'll have a process that will run those selected files and each file will have to produce another file unique to the filename.

A quick example would be process FILE1.txt and produce FILE1.pdf, etc.

Is there an easier way to accomplish the sort/reorder?

UPDATE

Here is currently how I'm populating my listbox1, before adding anything to listbox2, which is the ListBox I'd like to have sorted so way or another.

Dim directoryInfo As _
New System.IO.DirectoryInfo(FolderBrowserDialog1.SelectedPath)
Dim fileInfos() As System.IO.FileInfo

[Code].....

View 2 Replies

Copying Selected Files And Backgroundworker?

Jul 15, 2010

I'd like to start off by saying I'm extremely new to programing (3weeks) and I've come across a problem with my code. I've created a form that copies files from one folder to another. A user can either copy all files or selects files from a list box. Due to the size of the files the program freezes when performing the task. I have used backgroundworker component for copying all files and it works fine (no freeezing ). When I use the backgroundworker component for copying selected files I receive an error.

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
BackgroundWorker2.RunWorkerAsync()
End Sub

[code]....

View 3 Replies

How To Display Selected Format Files Alone

Nov 15, 2011

in the below coding the files selected in the dialog box are dispalyed in the list-box, but while selecting the format i need to display only the selected format files to be displayed , how to modify the coding to keep like that.[code]

View 2 Replies

Import All Files In A Dir And Sub Dir With A Selected Filetype?

Sep 22, 2010

how to import all files in a dir and sub dir with a selected filetype, lets say jpg to a listbox

ListBox1.DataSource = My.Computer.FileSystem.GetDirectoryInfo("c:").GetFiles("*.jpg")
or

[Code].....

View 3 Replies

Selected Files In Windows Explorer?

Dec 9, 2009

get a list of selected files (any kind) from the windows explorer in clip board or any possible source on click of a short key. I need this collection of selected files with full path to be used in an application that will need to process these files for specific purpose?

View 3 Replies

Using Selected Files As Input Args?

Jan 8, 2009

Let's say I have a console application that performs some actions on text files. I'd like a way to, in Windows Explorer, select multiple files, then hit a function key (or something like that) which launches my application using the selected file names as it's input parameters.

View 1 Replies

Reference A Group Of Controls Inside A Group Box?

Jan 1, 2011

I am writing an application and I do not know how to reference a group of controls inside a group box. I will include the code I have written so far and a picture with a detailed explanation as to what I am trying to do. Feel free to comment on any discrepancies that you may notice in my code.

Code:

Public Class Form1
' The following class-level constants are used
' to calculate the price of the model
Const decCOUPE As Decimal = 18000

[code].....

View 3 Replies

Remove All Items In A Listview Group And The Group Name?

Sep 25, 2011

I want to remove a group (include all items in this group) in ListView, but unsuccessful, the code is below, why?

ListView1.Groups("GroupName").Items.Clear()
ListView1.Groups.Remove(ListView1.Groups("GroupName"))

View 4 Replies

Urgent Add Activedirectory Group To A Local Group?

Apr 6, 2011

anyone have some quick code on how to do this?

wmi is not a option.

View 1 Replies

Forms :: Get All The Files Paths In A Selected Folder?

Feb 9, 2011

I want to display them in a listbox. I have gobbled together this

Dim theFolderBrowser As New FolderBrowserDialog
theFolderBrowser.Description = "Please select a folder for the download."
'theFolderBrowser.ShowNewFolderButton = False

[Code]....

get the actual path and then used that to get a bunch of mp3 files paths from a folder. However the above code gives me nothing in return.

View 2 Replies

Performing Batch Processing On Selected Files

Mar 11, 2012

I have created tool which performs batch processing on files that are selected. The sub routine I have defined in the code, now I want to implement a way through which I can select actions that I want to perform and then perform the actions. For example the list has multiple actions, like Open, Close, SaveAs, Resize, Color Correct etc. I should be able to select what all I want to do on each file and then perform this actions. Someone suggested me using delegates for this, but I cant use that since all my functions have different parameters. Ither option I had is to use a nested IfElse or Switch to determine which action is selected and call function according to it, but thats to heavy I think, is there any optimized a better way to do this.???

View 2 Replies

Populating A ListBox With Selected Files In A Directory?

Feb 20, 2011

The idea is to click Button1, for it to open a browser window, then select 1 or more files from a directory and add them to ListBox1.Currently I'm using a very basic method that adds all files from a directory to my ListBox

Dim files() As String = IO.Directory.GetFiles("C:Users")
ListBox1.Items.Clear()
For Each file As String In files

[code].....

View 6 Replies

VS 2008 Program Not Renaming All Files 'selected'

Jul 15, 2009

I have a program that will rename files that the user selects. The problem is even though when you go through the whole process, and it works successfully, it doesn't rename every file.To all people new to vb, try not to code like this as it is about the worst way to use a loop. I was in a hurry last night so i took the easy way out [code]Again, bad coding practices throughout the whole project, but the program will probably only be used by my dad so it will do.Note that the form: "Name and Ext" will not be shown when the program is all finished. I only had that visible for now so that i can check to see that everything is executing correctly.

View 1 Replies

Opening Text Files When Listbox Item Is Selected

Aug 4, 2009

a dialogue box to have the user open a file they wish. I'm trying to open a specific file when a listbox item is selected and I have that down but I'm running into the problem of needing to have "" in the display which is impossible from what I can tell in the code. I just need to know what goes in the quotes which will open the file. Also lets say the text file was 'supportdoc1.rtf' and was located in a folder inside of the program folder called 'SupportDocuments' would the path be "SupportDocumentssupportdoc1.rtf" [Code]

View 10 Replies

Print Multiple PDF Files With Selected Pages To Printer Using VB6?

Dec 7, 2009

I have the following:

1) 1,000 multi-paged PDF files (say 00000001.pdf, 00000002.pdf, ..., 00160000.pdf)

2) A list of pages for each document to print

View 2 Replies







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