Results 1 to 40 of 42

Thread: [2008] [VB.NET] Winrar DLL Simple Usage

Threaded View

  1. #19

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2008
    Location
    Nowhere
    Posts
    427

    Re: [2008] [VB.NET] Winrar DLL Simple Usage

    The decompressor class given with the solution has the control for the password already in it so for dynamic passwords you simply need to create a form to pass the password through (via String). Add a textbox and a button to it.

    Name the textbox: txtPW
    Name the button: btnOK

    Add this code to the form:
    vb.net Code:
    1. Public pw As String
    2.     Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
    3.         pw = Me.txtPW.Text
    4.         Me.Hide()
    5.     End Sub

    Note: If you do not name the form "pwDLG" you are going to have to change the code in the decompressor class. Find (Ctrl+f) "Case UCM_NEEDPASSWORD" and change "Dim f As New pwDlg" accordingly.
    Last edited by youngbucks; Sep 30th, 2009 at 03:41 PM.
    "Programming is like sex. One mistake and you have to support it for the rest of your life." ~Michael Sinz


    Code Snippets/Usefull Links:
    WinRAR DLL|Vista Style Form|Krypton Component Library|Windows Form Aero|Parsing XML files|Calculate File's CRC 32|Download a list of files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width