VS 2010 Setting Password To A Zip File?
May 17, 2011
I have an existing zip file. I would like to set a password to my existing zip file. I know how to zip, unzip using SharpZipLib. I am wondering, Is there a way to set a password without extracting and re-creating the zip file with password?
View 3 Replies
ADVERTISEMENT
Nov 15, 2010
In the UI of my winForm I ask the user for a user name and password. I store this password as text in the Settings (the .settings file) of my project. The app is a visual Studio Add-in How can I encrypt and decrypt the password before and after I enter it into the Settings file? I don't really need anything fancy. It's just a little in-house app. But I'd like to know all my options
View 3 Replies
Mar 11, 2010
i'm trying to set a password in my database using vb.net.here's my codes..
Private Sub btn_ok_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_ok.Click
Dim chkpass As Integer
Dim strsql As String
[code]....
View 1 Replies
Aug 13, 2009
I want to set a password to my database..I used DAO to access a database..It is MS-Access 7.0 Database..I searched lot of forums, but i found only with ADO..I tried this concept with DAO.. But i couldn't get.
View 1 Replies
May 23, 2009
Is it possible to make a program, that can set passwords on folders if it is running in the background? If now I open I my schoolprojectfolder, there will come a box, where you must type in a username and password. If the username or password is wrong, det folder wont open?
View 2 Replies
Jun 29, 2010
I am connecting to a Microsoft Active Directory server in a DMZ from my .net application (asp.net VB .net 4.0). I need to create a new "inetorgperson" in an orgunit called "SingleCustomerAccount".
I have had to use the System.DirectoryServices.Protocols namespace for all the work, because the ADSI classes (System.DirectoryServices namespace) wouldn't work across the DMZ properly.
Anyway it's been working fine connecting to Active Directory on Windows Server 2003 R2; however we're running tests against Active Directory on Windows Server 2008 R2 (2008r2 in native mode for forest and domain) in order to upgrade.
My existing code to create a user does not work.
System.DirectoryServices.Protocols.DirectoryOperationException: The server cannot handle directory requests.
at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32
[Code].....
View 2 Replies
Dec 31, 2011
I have very new to VB. I was just fiddling and ran into this. I cant set the text alignment of a text box twice with the focus events as well as cant set or reset the password char property. The code is given below:
Private Sub tbxLogin_LostFocus(ByVal sender As Object, ByVal e As System.EventArgs) Handles tbxLogin.LostFocus
If tbxLogin.Text = String.Empty Then
'tbxLogin.ResetText()
tbxLogin.ForeColor = Color.Gray
'tbxLogin.TextAlign = HorizontalAlignment.Center
'trying to align the tbx gives it focus
[Code] .....
View 1 Replies
Nov 22, 2010
1) I have a chat Program.
2) To access the Chat Program one has to put in ones Username and password in a Login Form.
3) TextBox1 = Username TextBox2 = Password
4) One clicks the "Log In" button.
5) HERE is the problem. I do not know how to check if the specific username and the password are correct. I have a file called "Users.dat". In there every valid Username(marked with a *) and it's Password(marked with a #) is contained e.g.*Username#Password.
I want my "Log In" program to check if the Username matches one of the usernames and if the username is found in the file, if the password provided is the same as the one standing behind the Username in the file.
6) If both the Username and Password are valid, the Chat Programs shows up.
View 4 Replies
May 12, 2011
im using a loop to enter text into text boxes using the following:
Private Sub FillTextbox(ByVal sElement As String, ByVal sString As String)
Dim z As Integer = 0
While Not SiteIsLoaded
[Code].....
But i have a file property, the website has the following code
<input type="file" size="30" name="torrent" id="torrent"/>
How can i use a loop similar to above to insert the filename
View 2 Replies
Apr 13, 2011
I'm making a custom control suited for handling passwords. I have created a control that inherits from a text box and I have implemented a lot of things so far. But what i want to do now is create a system so that when a user types It will display his last character typed for a X amount of time.Is there a way to turn only selected characters into password characters and still be able to get the password text from the Text property ?
View 3 Replies
May 25, 2009
i have made a program that needs a password to activate it but i would like it to look for a text file in the same directory called "password.text" as it will alow me to change the password.
[Code]...
View 5 Replies
Aug 2, 2010
I am creating a program that allows a person to enter details about their farm, stock, and machinery in order to electronically keep track of all of the information. I have created the forms and done all the coding for the data entry, and now what I would like to do is allow the user to delete a single record from the .dat file. I am able to delete it from the LstBox (using a "Delete Entry" btn coded simply with
lstvehicles.Items.RemoveAt(lstvehicles.SelectedIndex)
(using the vehicles section for examples)), but I am unsure of how to delete it from the .dat file as well, to prevent it reloading upon data change / program reload. Also I would like to be able to have a reminder come up on the program start up that gives a reminder to (in the vehicles instance)when a vehicles rego is due, the date being associated to a date that is entered into the same lstbox data using a datetimepicker.
View 5 Replies
Feb 4, 2012
I want to make a form that is only closeable if you have the password. I want the user to be prompted with an alert box asking for a password whenever they try to exit the application. I also need to disable Alt+tab, Ctrl+Alt+Del from being used.
View 4 Replies
Jun 4, 2012
I have made a program that uploads pictures to my website. But I have seen that there are loads of decriptors that can check my password. I have heard some people talking about encrepting and decripting but I have NO idea how I have to do that. I am working with a webclient as upload and I am using My.Computer.Network.UploadFile I need to make my password secure, so there is no way to get my password over that program.
View 10 Replies
Oct 29, 2009
getting my app to remember the login username and password , heres my code
Public Class login
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
[Code].....
View 19 Replies
Jun 4, 2012
[Code]...
I have found the above code on generating passwords but when I converted the whole project it displays 2 warnings that the code was obsolete but when I search google I didnt found any fix for that warning.
View 3 Replies
Jan 6, 2012
I am not going to explain my whole project or why I want it do this...Ok... so for example my myfile.txt file would contain the word "hello"ashuming this would work (which it didnt):dim myfile as String = application.startuppath("/myfile.txt")on form1 load: textbox1.text = myfileunfortunately instead of it sending the value of the file it sends to file location.
View 8 Replies
Mar 5, 2012
I'm working on my own project management software and I'm having trouble linking the database with the interface and then coding it so that the components interact with the database. Can anyone refer me to a good tutorial. I tried the MSDN and found that to be a little too over my head.
View 2 Replies
Nov 18, 2011
OK, so, I made a program that locks the computer with a password, to help you protect data from other people. It's quite simple, you open the program, it shows up in full screen, "To access this computer please type in the password"....etc.
BUT, I want it to have a "Guard". To make it act like a screen saver does. That's my plan: So, you typed in the password, and close the program. And then, if you didn't move your mouse, or press a key, or you're not watching a movie, for more than 6 minutes, I want it to automatically launch the program. Until now, I've just put in Form2.Show in the Form1's (which is the password-protect program) FormClosing class. I also made the Form2 on Full Screen, and it's opacity to 0%. That's where you will move your mouse. I made all the code until now, but I need code for making it act like a screen saver.
View 1 Replies
Jun 8, 2012
I had a richtextbox1 contains the following text:
<REPLY username =chicco1502
status = OK
user_id =3377436 >
<user_register.php: 2011-02-19 10:00:06
POST
username=edwardzhao
[Code] .....
So once I click button1 it should extract only Email plus Password into
Email: Password
edwardzh*2@hotmail.com:640716
gabriele.sc*hi@email.it:010585
So the email symbol is email= <email that should be extracted here>
and so the password sympol password= <password that should be extracted here>
Source code [URL]
View 3 Replies
Jun 14, 2011
I'm trying to change the password of an AD account in our domain. The program is supposed to locate the sAMAccountName property in AD through an LDAP connection, and then do two things. 1) unlock the user's account by setting the "LockOutTime" property to zero and 2) change the password to a pre-defined password in the code. I've got the program unlocking accounts, but I can't get it to change passwords.
I've tried the line "DirectoryEntry.Properties("userPassword").Value = "xxxxx". I've also tried the DirectoryEntry.Invoke("SetPassword", New Object() {"xxxxx"}) but neither of them work. The first one throws no exceptions but doesn't change the password, and the second one will give me the message "Exception has been thrown by the target of an invocation".
View 1 Replies
Jul 29, 2010
I've never really used the SecureString class before but I've got a requirement in an app to have a user enter a password that will be used later in the application, and I figure SecureString is the most secure way to do this.
I have created a little dialog form where the user will enter their username and password and have set the UseSystemPasswordChar property of the password textbox to True. As I need to keep the password in memory for use later though, I have created a property in my main form that is of type SecureString and when the user enters their password into the dialog window I copy the string from the password box to the SecureString property like so:
vb.net
For i As Integer = 0 To LoginFrm.PasswordBox.TextLength - 1
Me.ConnectionPassword.AppendChar(LoginFrm.PasswordBox.Text(i))
Next
I figured out how to get the original string back when I need to (with only a slight hint from the documentation I might add ), which I do like this:
Dim OriginalString As String = Marshal.PtrToStringBSTR(Marshal.SecureStringToBSTR(Me.ConnectionPassword))
but the problem I have is that I want the user to have the option to edit the password they already entered if they want to. This is a problem because I want to avoid putting the real password back into the password box for security reasons, but then if I just put some random characters in there (just to show that their password has been remembered by the app) and then the user clicks OK on the login diaog form then it will update my ConnectionPassword property and set it to the random characters.
One option would be to set the passwordbox text to something specific each time and then test to see if that is what the text is set to when they click Ok (and if it is then obviously dont update the ConnectionPassword property) but this seems pretty rubbish because its possible (however unlikely) that the user could actually select that word as a password.
Any better suggestions? Perhaps its not worth doing anything at all and just use a normal string as the SecureString is going to have to get converted back to a normal string at some point to be used.
View 8 Replies
Feb 1, 2011
I have already build a application where you type in your username and password and it changes it to the specified password. Now I want to make a "User password remover" application. (It should be the same as "Control PanelUser Accounts and Family SafetyUser
AccountsRemove Your Password").
The program should check:
1) Which User is currently logged on and using the program.
2) Check if the User has a password.
3) If No then Exit the program, else Step 4.
4) If YES then allow the User to type in his current password, press a button and Windows should remove the password.
View 4 Replies
Aug 5, 2010
I searched on the net looking for the code to create a sdf file and found it.But if I want to create sdf file with password protection? how I do it? i usually use this code as a connection to a database without password protection Dim ConnStr As String = "Data Source =" & My.Application.Info.DirectoryPath & "asedados.sdf;File Mode=Shared Read;Persist Security Info=False"
View 1 Replies
Jan 15, 2012
I'm trying to create a password change form for my company's vendors. There are a couple of scenarios I could encounter doing this:
1 - User enters invalid current password
2 - New passwords do not match
3 - User's account is locked
4 - User cannot authenticate because password is expired
It's case 4 that I'm struggling with, because their is no way for me to take the password the user entered and verify it against active directory without getting an error.
View 5 Replies
Jun 1, 2011
I am implementing a system where the user can Reset their password if they have forgotten it.Once it is reset I want to give them the option of changing the password so that it will be something more memorable to them.The password is hashed and if i enter in the correct old password and new password the password does change.If I enter in the wrong old password and new password the password doesnt change.Is there a way to match the old password with the old password field in code behind so I can throw up an error to the user to tell them what is wrong? [code]
View 1 Replies
Feb 10, 2009
How do you get a textbox being using for password entry to display the black circle that you often see in web forms, on the iphone etc etc?
I can change the PasswordChar property to an asterisk no problem and even copying and pasting symbols inserted into Word seemed to work - just couldn't find a symbol that looked like a bullet point!
Can this actually be achieved for a standalone exe, or is it something unique to web forms? Surely copying and pasting symbols from Word isn't actually the answer?
View 6 Replies
Oct 29, 2011
I'm using VB2010 (10.0.40219.1 SP1Rel) and .NET 4 (4.0.30319 SP1Rel) on Windows 7, when I press F1 for a VB item I get help for VB 2008 and .NET 3.5; how do I set those to the correct values? I have run "Check for updates online" under "Manage help settings", and rebooted; no change.
View 3 Replies
Feb 6, 2012
How would I go about setting an active window? I've researched and I can use "SetForeGroundWindow". I have tried, but I still can't get it to work.
View 9 Replies
Apr 20, 2010
The Window Layout setting seems to have gone away in VS 2010. I'd rather my environment default to Multiple Documents. I really can't stand Tabbed. Tabs are good for browsers and cell phones, but not so good for a programming IDE.
View 2 Replies