|
-
Jun 13th, 2011, 02:08 PM
#41
Banned
Re: [2008] [VB.NET] Winrar DLL Simple Usage
1 where does the path string of the rar file go in the code ?
2 does btn 1 or 2 unpack the rar file ?
3 in case the rar is passworded where(in the code or the form) does the user enter the pass ?
4 is post #1 edited or will it raise some of the glitches raised in the following posts ?
-
Mar 21st, 2012, 12:34 AM
#42
New Member
Re: [2008] [VB.NET] Winrar DLL Simple Usage
 Originally Posted by youngbucks
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:
Public pw As String
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
pw = Me.txtPW.Text
Me.Hide()
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.
how do i enter a static password
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|