VS 2010 DotNetZip, Removing A Directory?

Aug 9, 2011

[URL] There's a RemoveEntry() function to remove a file, but I can't seem to find a function to remove a directory... Does DotNetZip support directory removal? If not, what are some other libraries I could try?

View 1 Replies


ADVERTISEMENT

VS 2010 Extract Progress DotNetZip Library?

Jun 4, 2012

I am trying to track the progress of a file that is being extract with a progress bar. but i have no idea on what i should set as the max of the progress bar and the value..

here is my

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles Button2.Click
Dim ZipToUnpack As String = "C: est.zip"

[Code]....

View 11 Replies

Removing Directory In Open Dialogue?

Jun 10, 2011

Im using a Open Dialogue to capture the NAME rather than the path of a file.

How can i remove the path directory of opendialoge1.filename and just present the name of the selected file?

View 3 Replies

File Compression Using DotNetZip?

Oct 17, 2011

I'm currently working on a utility software, file compression, with VB.Net. And using an open source library to compress and decompress files - DotNetZip - and already running.

My friend told to make it unique and not traditional, that I make the output compressed files cannot be opened with other compression software. Now my question is... is it possible that way? Using an open source library which the output format is ".zip"?

I first thought that changing the file extension of the compressed file to unknown format so it can't be opened when you try to decompress it, unfortunately, using the "Open With..." function of windows it could still be decompressed.

Is it really possible? OR what other features can I add that WinZIP doesnt have yet? I compared my work to WinZip since the same output is ".zip".

View 1 Replies

C# - Create Zip Files In Classic ASP Using DotNetZip Or SharpZipLib?

Aug 20, 2010

In ASP.Net two of the possible ways to make the zip files are

Sharp Zip Library

Dot Net Zip Library

How can i use any of these in Classic ASP to make the zip files ? And which one will be better ?

View 3 Replies

VS 2010 - Scan Directory And Sub Directory

Jan 1, 2012

I have a FolderBrowserDialog box, and when the user selects a folder, I would like to scan that folder and its sub folders for these file types: jpg, gif, png Here is what I have so far:

[Code]...

View 7 Replies

VS 2010 Removing Commas From Csv

Oct 16, 2011

I'm reading a csv and load it to a DataGrid using this:[code]Each item on record is between two commas, I tried a lot of things to remove them but I failes, wich is the best method?

View 4 Replies

VS 2010 Removing Controls?

Oct 6, 2011

I'm using this code to remove controls from a panel.vb.net For Each c As Control In Me.pnlDevices.Controls Me.pnlDevices.Controls.Remove(c)Next

but somehow it doesn't remove all the controls at once, I have to run the code 3 times to remove them all(there is about 20 to 30 of them, mainly labels I don't know if it matters, but the controls where added dynamically at startup...

View 3 Replies

.net 2010 Removing Decimal Places?

Feb 3, 2011

in my application there's Textbox1.text, Textbox2.text, Textbox3.text and Button1.

my code is:

Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TextBox3.Text = Val(TextBox1.Text) / Val(TextBox2.Text)
End Sub
End Class

View 8 Replies

VS 2010 - Removing First Char Each Line

Mar 25, 2012

I have a textbox multiline and i want to remove each first element of the textbox.

[Code]...

How i can remove the first element of each line of the textbox ?

View 1 Replies

VS 2010 - Removing Items From A List (of T) With For Each

Dec 14, 2010

Public Structure ReportOrderType
Public ReportName As String
Public ReportDate As Date
Public SaveFile As String
End Structure
[Code] ....

Basically, I have a list of reports. In one place they get ordered, and later on the program looks to see which ones have come back -- see if the .SaveFile exists on disk. If it exists, then that report gets processed, and then I want to remove that item from the list of reports-on-order. However, I get an error message back that by doing the .Remove(R), I've changed the list itself & things won't go well with the rest of the For Each loop, which makes some sense.

When I get to this routine, the list of ordered reports will be something from a couple of dozen or less, and some number of them (perhaps zero, perhaps all, probably a few) will exist & be processed & then should be removed from the list. How should I go about accomplishing this? This is my first time working with List(of t) as a Visual Basic tool; everything I've used in the past has been with arrays, and I can do this there.

View 15 Replies

VS 2010 : Removing Characters From A String?

Nov 22, 2011

I need to parse an alphanumeric string leaving the characters "0-9", ".", "/" and space & remove everything else. I use "[^0-9./ ]" as my regex string and it works well. But now I have a couple other conditions that I dont know how to handle with my regex string. I actually only want to keep the "." character if it falls between two digit characters (ie. 3.5), otherwise remove it. And also I need to replace any "-" characters with a space if it falls between two digit characters (ie. 2-1), otherwise remove it.

View 1 Replies

VS 2010 Creating And Removing Controls?

Sep 2, 2010

I'm making quite the complex program, and while I try to figure out some more advanced methods that work better for what I'm trying to do, I'd like to learn how to do this (which is a bit of a roundabout method to what I've been trying). I'm wondering, how can I programatically create and remove objects? For example, I have webbrowser1. I want to remove it and create another webbrowser that I will also name webbrowser1. (therefore, the instance of the original must be removed)

View 5 Replies

VS 2010 List (of T) Removing Items?

Mar 7, 2012

I have the following

Public itemArray As New List(Of ItemArrayStructure)
Public Structure ItemArrayStructure
Dim DisplayText As String
Dim Checked As Boolean
End Structure

If I know the DisplayText of an item in this array, how can I remove it?

View 2 Replies

VS 2010 Listbox: Removing All SelectedItems?

Jul 10, 2010

i want to remove all selecteditems i tried to use this loop but it didn't work

Dim a As String
For Each a In History_Textbox.SelectedItems
History_Textbox.Items.Remove(a)
Next

How do i do it because that just didn't do anything

View 3 Replies

VS 2010 Removing Blank Lines?

Sep 5, 2011

I have a multiline textbox where I sometimes get the first and last line of data that is blank.

This is my code that populates the textbox:

txtOutput.Lines = lines.ToArray How can I remove these blank rows?

View 5 Replies

VS 2010 Removing Characters From A String

Oct 23, 2011

If I want to remove 2 characters, or a specific letter or character from a string in VB, how would I accomplish this?

A usual input would be

"63.0" in string format

and I want it to be

"63"

View 6 Replies

VS 2010 Removing Controls At Runtime

May 17, 2011

What's wrong with the following code? I'm trying to remove some radio buttons that were created dynamically but the controls' names are not being picked up by this code (only the name of the type of control).

[Code]...

View 9 Replies

VS 2010 Removing Part Of String?

Oct 9, 2010

I have a file location as a string. How can i remove the path from the string and just use the file name? For example:c:filesfile.zip - is the stringhow can i just make it so it's file.zip?keep in mind that the location is found by using anpenfiledialog(), so it needs to be able to remove the location wherever the file is.

View 6 Replies

VS 2010 Removing Some Controls From The Controlscollection?

Oct 17, 2011

I have a problem with a bit of code that is supposed to delete every controls on a form appart from the 2 first controls

vb2010
Private Sub ClearCheck(ByRef Container As Control)
Dim ctl As Control
Dim Boxtype As Control
Dim i As UShort = 0

[Code]...

The behavior is strange, I can't find any logic to it, it will sometime delete a part of the objects, other times it will delete other part of the objects. If I run it more than once, I can achieve the wanted result and remove all controls except the 2 I want to keep. It's as if it was checking 1 out of 2 controls.

To give you a better idea I have a combobox on the form and depending on choice it adds appropriate controls (not show/visible true) and add a second combobox to refine the search. If I change the value in the first combobox I want to remove the added controls from the previous combobox.SelectedIndexChanged as well as any control created by the following combobox from the form.

If need be I'll post the code that creates those new controls, but it's quite long so I didn't include it in this post

View 4 Replies

VS 2010 Removing Unnecessary 0's From An Array?

Dec 12, 2011

I have an array with a possible of 25 numbers that can be entered into it, how to take out the unnecessary zero's for the valueas i have not entered into my array.

Public Class Form1
Dim mintArray() As Integer 'Declares Array without giving it a size
Dim Array(24) As Integer

[Code].....

I get an error at the highlighted part : " InvalidCastException was unhandled, Conversion from string "" to type 'integer' is not valid."

View 22 Replies

Removing Drafts After Send Outlook 2010 Why?

Jan 11, 2012

I have written this code to send a notification to a group of people.... what i want to do is set up a draft, then send a email to each person on the list without a cc: or Bcc:when i run this code it takes the draft out of the draft folder after the first email is sent.how can i stop it from removing the email? [code]

View 2 Replies

VB 2010 - Removing Listbox Items That Are Less Then Average

Apr 29, 2012

Basically I need to remove Listbox1 items that are less then average, but its giving me:

System.ArgumentOutOfRangeException was unhandled

Message=InvalidArgument=Value of '9' is not valid for 'index'. [Code]

View 2 Replies

VS 2010 - Removing Exact Data In A String?

Mar 23, 2012

I have been using the following code to remove text from strings so far;

String = Replace(String, "TextToChange", "")

However, I now would like to remove two words only when the occur consecutively for example, I would like to remove "Task 1", not all instances of the word "Task" and value "1".

View 2 Replies

VS 2010 Copying/Removing/Replacing Files?

Jan 10, 2010

I have a file that is constantly altered, and if an error happends, I want to have a backup. I was wondering if there's a way to make a script that will copy all the files in the selected folder, and post/overwrite them every 20 minutes in a back-up folder or something, and I say overwrite so it doesnt take up 298347234 gigs of data.

View 2 Replies

VS 2010 Error When Removing From List(Of String)

May 8, 2010

For Each s As String In list

If s.Contains("Hello") Then
list.Remove(s) 'ERROR Collection was modified; enumeration operation may not execute.
End If
Next

Why do i get that error?

View 22 Replies

VS 2010 Graphics Removing After Drawn/updated?

Dec 15, 2010

Currently I'm working on a retro-pong game using graphics. The problem is, my code keeps drawing new ellipses every time, and doesn't discard the old ones.

Current
Private Sub timeEngine_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmeEngine.Tick

[Code].....

View 1 Replies

VS 2010 Removing Control Array Controls?

Mar 16, 2012

I have added controls to the form using a control array.. However, when I re-run it they stay and more appear. How do I get rid of the first set?

View 10 Replies

VS 2010 Removing Line From Either String Or Textbox

Aug 3, 2011

I have strMyString that contains about 5000 lines of data. There are some lines of data that need removing if they contain a certain string, such as "http", "www.", ".com", "cat", "fish", etc. The whole line needs removing. Each line is separated by a vbNewLine or similar.

How can I do that? Does it need pasting into a rich textbox first before processing?

View 8 Replies

VS 2010 Removing Line From Text File?

Aug 20, 2011

I'm trying to have a program remove lines from a text file if they start with a certain string. I haven't had much luck with this over the past couple of days so I thought I'd try and get some advice.

This is the code that I've tried most recently, and makes some sense to me, but gives a "A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll" error:

Dim SourcePath As String = "C: est.txt"
Dim fileLines As List(Of String)
fileLines = New List(Of String)(File.ReadAllLines(SourcePath))

[Code].....

View 4 Replies







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