Click here to Skip to main content
15,915,702 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do I make multiple sqlDataReaders work Pin
reykentj14-Apr-07 8:36
reykentj14-Apr-07 8:36 
GeneralRe: How do I make multiple sqlDataReaders work Pin
Colin Angus Mackay14-Apr-07 10:41
Colin Angus Mackay14-Apr-07 10:41 
GeneralRe: How do I make multiple sqlDataReaders work [modified] Pin
reykentj14-Apr-07 12:29
reykentj14-Apr-07 12:29 
QuestionUser controls and Typed dataset Pin
steve_rm13-Apr-07 9:36
steve_rm13-Apr-07 9:36 
QuestionHow to get all objects or controls in a form? Pin
Kilua1113-Apr-07 7:18
Kilua1113-Apr-07 7:18 
AnswerRe: How to get all objects or controls in a form? Pin
Dave Kreskowiak13-Apr-07 7:47
mveDave Kreskowiak13-Apr-07 7:47 
QuestionCreating password protected Zip file Pin
yalandunya13-Apr-07 5:42
yalandunya13-Apr-07 5:42 
AnswerRe: Creating password protected Zip file Pin
Sathesh Sakthivel13-Apr-07 7:43
Sathesh Sakthivel13-Apr-07 7:43 
Try with this Code.
Dim ZipFile As ChilkatZip2<br />
<br />
Private Sub Command1_Click()<br />
    <br />
    ' Get the zip file name<br />
    CommonDialog1.ShowOpen<br />
    CommonDialog1.CancelError = True<br />
    SourceFile.Text = CommonDialog1.FileName<br />
     <br />
End Sub<br />
<br />
Private Sub Command2_Click()<br />
    <br />
    ' Create a ChilkatZip object<br />
    Set ZipFile = New ChilkatZip2<br />
    ZipFile.UnlockComponent UnlockCode.Text<br />
    ZipFile.NewZip OutputZip.Text<br />
    <br />
    ' To create a WinZip-compatible password-protected Zip, simply<br />
    ' set the PasswordProtect property to 1, and set a password.<br />
    ' To unzip, WinZip will prompt for this password.<br />
    ZipFile.PasswordProtect = 1<br />
    ZipFile.SetPassword "secret"<br />
    <br />
    ' Add the disk file to the Zip object<br />
    ZipFile.AppendFiles SourceFile.Text, 0<br />
    <br />
    ' See if anything was added.<br />
    If (ZipFile.NumEntries = 0) Then<br />
        ZipStatus.Caption = "Error, no files added to the Zip archive."<br />
        Set ZipFile = Nothing<br />
        Exit Sub<br />
    End If<br />
    <br />
    ' Compress and write to disk.<br />
    success = ZipFile.WriteZip()<br />
    If (success = 0) Then<br />
        MsgBox ZipFile.LastErrorText<br />
        Exit Sub<br />
    End If<br />
<br />
    ' How much compression occured?<br />
    Dim e As ChilkatZipEntry2<br />
    Set e = ZipFile.GetEntryByIndex(0)<br />
    If (Not (e Is Nothing)) Then<br />
        origSize = e.UncompressedLength<br />
        compressedSize = e.CompressedLength<br />
        ZipStatus.Caption = "Success." + vbCrLf + Str(origSize) + " bytes compressed to " + Str(compressedSize) + " bytes"<br />
        Set e = Nothing<br />
    End If<br />
    <br />
    ZipFile.CloseZip<br />
    <br />
    Set ZipFile = Nothing<br />
    <br />
End Sub<br />
<br />
Private Sub Form_Load()<br />
    OutputZip.Text = CurDir$ + "\outputFile.zip"<br />
    <br />
End Sub<br />


Regards,

Satips.

GeneralRe: Creating password protected Zip file Pin
Dave Kreskowiak13-Apr-07 7:49
mveDave Kreskowiak13-Apr-07 7:49 
AnswerRe: Creating password protected Zip file Pin
Dave Kreskowiak13-Apr-07 7:48
mveDave Kreskowiak13-Apr-07 7:48 
QuestionVery Urgent Pin
Devkranth Kishore Vanja13-Apr-07 2:00
Devkranth Kishore Vanja13-Apr-07 2:00 
AnswerRe: Very Urgent Pin
Dave Kreskowiak13-Apr-07 3:12
mveDave Kreskowiak13-Apr-07 3:12 
AnswerRe: Very Urgent Pin
Thomas Stockwell14-Apr-07 6:53
professionalThomas Stockwell14-Apr-07 6:53 
QuestionHow to Resize Paper in Crystal Report? Pin
thanhtc24913-Apr-07 1:31
thanhtc24913-Apr-07 1:31 
Questionoperating system accounts(to login) in vb.net Pin
amaneet13-Apr-07 0:28
amaneet13-Apr-07 0:28 
AnswerRe: operating system accounts(to login) in vb.net Pin
lucjon13-Apr-07 0:44
lucjon13-Apr-07 0:44 
Questionusing Foxpro DB as backend to Visual Basic 2006 Pin
preci13-Apr-07 0:06
preci13-Apr-07 0:06 
AnswerRe: using Foxpro DB as backend to Visual Basic 2006 Pin
Dave Kreskowiak13-Apr-07 3:49
mveDave Kreskowiak13-Apr-07 3:49 
Questionconverting/mapping Foxpro DB to Visual Basic 2006 Pin
preci13-Apr-07 0:05
preci13-Apr-07 0:05 
QuestionVery urgent problem in crystal reports please help Pin
Shuaib wasif khan13-Apr-07 0:02
Shuaib wasif khan13-Apr-07 0:02 
AnswerRe: Very urgent problem in crystal reports please help Pin
amaneet13-Apr-07 0:31
amaneet13-Apr-07 0:31 
Generalwhat is parameter range value how to use Pin
Shuaib wasif khan13-Apr-07 1:11
Shuaib wasif khan13-Apr-07 1:11 
Questionsql query for month... Pin
Member 387988112-Apr-07 22:55
Member 387988112-Apr-07 22:55 
AnswerRe: sql query for month... Pin
jhoga13-Apr-07 5:24
jhoga13-Apr-07 5:24 
Questionexe in the system tray Pin
amaneet12-Apr-07 21:04
amaneet12-Apr-07 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.