eddychamoun's Profile
Reputation: 1
Apprentice
- Group:
- Members
- Active Posts:
- 35 (0.04 per day)
- Joined:
- 22-November 10
- Profile Views:
- 755
- Last Active:
Sep 25 2012 04:23 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: How To Compress Files In VB .Net ?
Posted 18 Sep 2012
-
In Topic: How To Compress Files In VB .Net ?
Posted 18 Sep 2012
I've found that code and I modify it and still didn't worked for me
For Each lz As String In ListBox1.Items Dim z As System.IO.Packaging.ZipPackage z = System.IO.Packaging.Package.Open("Archive" & ".zip", IO.FileMode.Create) Dim B = System.IO.File.ReadAllBytes(lz) Dim partUriDocument As Uri = System.IO.Packaging.PackUriHelper.CreatePartUri(New Uri(System.IO.Path.GetFileName(lz), UriKind.Relative)) Dim P = z.CreatePart(partUriDocument, System.Net.Mime.MediaTypeNames.Application.Zip, IO.Packaging.CompressionOption.Maximum) P.GetStream.Write(B, 0, B.Length) z.Close() Next
modi123_1, on 18 September 2012 - 08:04 AM, said:Did you try copying the files into a temporary folder and compressing that?
Well I don't want to use that method cause there is large files that should be compressed that might take a long time to copy it then to compress it -
In Topic: How To Compress Files In VB .Net ?
Posted 18 Sep 2012
Mina-no-Hime, on 18 September 2012 - 07:48 AM, said:For starters, it will do you wonders to come up with more descriptive names for your UI elements. ListBox1 and Button1 don't tell people looking at the code which is which.
As modi asked, what problems did you have with GZip and DotNetZip? Can you show us any of the code you've actually used to try to do the compression?
For the DotNetZip I could not load it in the reference so it didn't worked and for the gzip I couldn't find the specific code to compress multiple files location .Gzip worked for me by compressing a folder -
In Topic: How To Read A Resource File In VB .Net ?
Posted 8 Jul 2012
AdamSpeight2008, on 08 July 2012 - 01:59 AM, said:Of course it is, the label will be what the last condition in the the for-loop results in choosing.
Accessing Resource in vb.net is simple as;-
My,Resources.
So in my case what should I do in order to solve my problem - If the site was included in the "sites.txt" the label should be Infected and if the site wasn't included in the "sites.txt" the label should be Not Infected -
Ionut, on 08 July 2012 - 02:06 AM, said:Here I strongly suggest you to put a breakpoint and debug your code. My guess is that at the end of every LineParts value is a CR_LF(Carriage return and Line feed = Enter). A breakpoint will help you to see the value of that variable at each step.
Also, you may find Contains method more useful
if LineParts.Contains(TextBox1.Text) then 'set infected else 'set not infected end if
Furthermore, you can shorten your code by using IIf
Label1.Text = IIf(LineParts.Contains(TextBox1.Text), "Infected", "Not infected")
thanks Ionut you solved my problem
-
In Topic: How to maximize a flash window ?
Posted 26 Aug 2011
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Click here to e-mail me
Friends
|
|


Find Topics
Find Posts
View Reputation Given

|
Comments
eddychamoun has no profile comments yet. Why not say hello?