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
ADVERTISEMENT
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
Jun 21, 2010
Ok, I have a usercontrol in a Class Library Projects which contains a Button, 2 Listboxes, and a Progress bar. My code is to look for a file and if its there post to one listbox and fill in the progress bar and also put the programs current task in the other listbox. Recently, I started using VB.Net 2010 Express and wanted to turn part of a form into a .dll so it would be easier to update. I started getting a error and had to declare a variable as a New instance of UserControL1 (my user control). When I did this, the control would run, but the Progress Bar doesn't fill and neither of my listboxes show anything. What Should I do?
View 1 Replies
Feb 12, 2010
I have the following function
Private Function GetMD5(ByVal file As String) As String
Dim md5 As MD5CryptoServiceProvider = New MD5CryptoServiceProvider
Dim f As FileStream = New FileStream(file, FileMode.Open, FileAccess.Read, FileShare.Read, 8192)
md5.ComputeHash(f)
[code]....
It works fine, but when working with very large files on the network my users sometimes panic.I'd like to add a progress bar that updates based on the progress of the hashing through the file.So, my choice are either to manually create the hashing process, which I believe will be much slower,or somehow tap in to the position value of the filestream and use that to update a progress bar.I'd be happy to tap into the events of the MD5CryptoServiceProvider if I could, but I don't see anything there.I have searched the net to try to find an example and have only found code that works by reading line by line from the filestream, not from it being passed to another control/service.
View 2 Replies
Jan 17, 2012
Looked through many tuts, can't find one.
View 1 Replies
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
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
Aug 15, 2009
Ive found plenty of examples of extracting an icon from a dll, but then those examples display the icon as an image, which is not what Im trying to do. Im trying to extract those icons dynamically into my program to set the application icon, and other icons for items on the menu bar. I have this little bit of code, but I keep getting various errors when I use it.
View 12 Replies
Aug 19, 2011
If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.
View 1 Replies
Mar 18, 2012
I'm having a little trouble trying to read a word document in vb. how to get the text out of the word document would be great.
View 4 Replies
Dec 2, 2011
I'm stuck on a progress bar problem. I just wanted to know how I would go about getting the value of a progress bar, and converting it to a string to display in a label. I am doing a task with the progressbar, and I wanted to know how to get the value of the progress bar, and display it in a label above of it.
[Code]....
View 5 Replies
Mar 18, 2011
I've made a working progress bar but I'm trying to make it show a message showing 'loading complete' or something when it is 100% finished.[code]but this resulted in the message opening constantly and when they are all closed they stop opening?
View 2 Replies
Mar 5, 2011
I have a progress bar that I'd like to 'load' as a song is being played (I'm using Windows Media Player). I've attempted it but I haven't gotten very far, more specifically I'm stuck at setting the value of the progress bar to match WMP.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
ProgressBar1.Maximum = AxWindowsMediaPlayer1.currentMedia.duration
ProgressBar1.Value = AxWindowsMediaPlayer1.Ctlcontrols.currentPosition <- This is where I'm stuck
ProgressBar1.Increment(1)
End Sub
View 7 Replies
Oct 12, 2011
I'm creating a dll (class library project) file for an OCX. I have an OCX (not Active X, just normal ocx and no need to put on form in order to use it.) which I normally call it from normal windows project's code behind. However, in order to use this OCX, I need to install one software and register with the correct license key.
[Code]...
View 2 Replies
Jan 10, 2012
i am trying to extract tar.gz file using sharpziplibthis file contain 3 folders and 11 files but this code extract only single file and its folderor this my code is as below
Imports System
Imports System.IO
Imports ICSharpCode.SharpZipLib.Tar
[code].....
View 2 Replies
Jun 14, 2011
Is it possible? And before you tell me to use SharpZipLib or something, i should warn you since i am a complete noob and cant use it without a complete, easy to understand guide.
View 6 Replies
Sep 15, 2011
how would i extract something like this....
CODE:
could possibly something like this work...
CODE:
View 1 Replies
Aug 11, 2010
Does anyone know how to do one?
View 10 Replies
Sep 29, 2010
I�m using a few workbooks in excel to calculate data and then I import them to access and finally I use it in visual basic front end.
Now the workbooks can get quite heavy and it takes some time for the computer to open and save and so on, so I�ve put a progress bar on my form to show the user that something is happening.
However I would like to use excels own progressbar, so that when the workbook is being saved, my app actually shows the progress of that particular save. Can I do that? The instance of excel that handles the workbooks is hidden.
View 1 Replies
Mar 15, 2012
I got a program that starts a batch file into a textbox and makes backups of my database things, I would like to add a progressbar to my program to see while the progress is running, here is my code, but its not working good at all, I mean, the progressbar one works, but it dont update with the files copied, etc...
Public Sub FAZERCOPIA()
Dim SW As System.IO.StreamWriter
Dim SR As System.IO.StreamReader
Dim i As Integer
[code]....
View 26 Replies
Mar 1, 2012
Here is my
frmMain.tsProgressBar.Value = 0
frmMain.tsProgressBar.Maximum = 100
Do While byteCount > 0
EncryptCryptoStream.Write(buffer, 0, byteCount)
[Code]...
For some reason, the code to update my progress bar is not working. I uncommented the Msgbox line, and a message is only displayed at 100%. Why is this?
View 7 Replies
Sep 20, 2010
I just converted a project from 2008 to 2010. I didn't encounter any errors in the conversion.I tried to add HTML Imports System.Threading.Tasks. This gives the "...doesn't contain any public member..." warning and naturally, the .Tasks library is not recognized. Is there any trick to the conversion, setting in the properties, etc. that I need to deal with?Note that I have a "from scratch" project that accesses the System.Threading.Tasks class with no problem. Both projects are contained in the same Projects folder as in:
Projects/ProjectThatWorks
Projects/ProjectThatDoesn'tWork
View 1 Replies
Mar 28, 2011
I am using visual studio 2010 and tried to create a class library which I then use in an application that will create tasks using the TaskFactory and execute the class functions from the newly created class library. However I get the instance not defined errors in the application.
CLASS LIBRARY:
Assembly Name: GPStream
Root namespace: TFStream
Project with different classes:
GPStream:
gStream.vb,
[Code] .....
I do have it added as a reference.
Class library:
Assembly name GPStream, Root Namespace GPStream
Project name GPStream, Main Class gStream
View 2 Replies
Nov 27, 2011
I need to find out if particular library exists on the users PC. Specifically, d3dx9_41.dll.Typically, this file is in the System32 folder and I've confirmed that its actually there on my dev machine.So I thought I could just use the Exists method of the File class. But, it always returns false. I even tried using the LoadLibrary API, but it always retur
View 4 Replies
Jan 31, 2012
I am trying to create a Library for like code that we use in more than one application. One call involves an array where I need to create a pointer to the array for what I need.
Is there a way to pass a value ByRef, have it increment, and return the value back to the original call?
View 35 Replies
Jul 20, 2010
I have a big problem with my application! I must be extract a Windows DigitalProductId with VB 2010 in Windows 7 x64. I have tested a lot of code but I haven't resolved the problem... This is an easy code, it work perfectly on x86 but non on Windows 7 x64. (I haven't tested on Vista x64).
Code:
' A function that retrieves the product key used to install Windows.
Public Function GetProductKey() As String
' This function will retreive the digital product ID from the registry
' and decode it into the CD key used to install a Microsoft product.
' All that is needed is the registry path to the digital proudct ID block
' for the product in question.
[Code] .....
Error:
System.InvalidCastException:
Unable to cast object of type 'System.Int32' to type 'System.Byte[]'.
The variable dpidDataBlock return ZERO after Registry.GetValue
View 3 Replies
Apr 18, 2011
How to extract digits from the beginning of a string?
1234A - should output: 1234
123AB - should output 123
12ABC - should output 12
1ABCD - should output 1
View 14 Replies
Dec 13, 2011
I wanted to extract today's date from
[URL]
and the expected output will be: Wednesday, December 14th, 2011
View 1 Replies
Aug 26, 2010
I want to extract the jhon
<font color="#008800">
1 jhon
</font>
View 13 Replies
Dec 18, 2011
I have a website with different urls of differents domains but I need to harvest only the links of this domain [URL]
For example there is a list of urls like this:
[URL]
I want to harvest only all urls from the domain [URL]
This is the html code of every link :
<tr>
<td class="label">Paginas cristianas:</td>
<td>
[Code].....
I want to put all url into a listbox,
View 1 Replies