| View previous topic :: View next topic |
| Author |
Message |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Thu Sep 27, 2007 3:24 pm Post subject: Vb6 Help password |
|
|
hi i need help again not with the serial like when ur makeing something and u want it password protect
how do u make like when they enter the right password it show a diffrent form
and whats the code that people will not be able to use some kind of program too see password?
_________________
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Thu Sep 27, 2007 3:56 pm Post subject: |
|
|
i know you can make a simple login box. i don't practice vb code, but make like login and password box and i think you name
| Code: |
login=textbox.1
password=textbox.2
then have textbox.1= "w/e phrase"
then have textbox.2= "w/e phrase"
i don't use vb, so correct me if im wrong, ive used it once, but i find c++ better.
hope i helped :wink: |
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Thu Sep 27, 2007 4:05 pm Post subject: Re: Vb6 Help password |
|
|
| xDemonRobbiex wrote: | hi i need help again not with the serial like when ur makeing something and u want it password protect
how do u make like when they enter the right password it show a diffrent form
and whats the code that people will not be able to use some kind of program too see password? |
| Code: | Private Sub cmdEnter_Click()
If txtPassword.Text = "Password" Then
NewForm.Show
Else
Call MsgBox("Invalid password.", vbCritical)
End If
End Sub |
_________________
| haxory' wrote: | can't VB do anything??
windows is programmed using VB right? correct me if im wrong.
so all things in windows you have like the start menu is a windows form too. |
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Thu Sep 27, 2007 4:09 pm Post subject: |
|
|
Go with Xene im not as good at at VB as other languages
|
|
| Back to top |
|
 |
Golden Wing Grandmaster Cheater
Reputation: 0
Joined: 29 Aug 2007 Posts: 905
|
Posted: Thu Sep 27, 2007 4:11 pm Post subject: |
|
|
thx both of you for the scripts Edit; it say object requires Edit:lol nvm i had to change txtpassword to text1
_________________
|
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Sep 27, 2007 4:44 pm Post subject: |
|
|
| xDemonRobbiex wrote: | thx both of you for the scripts Edit; it say object requires Edit:lol nvm i had to change txtpassword to text1 |
You should name your controls properly instead of leaving them the default names. It's just good practice to do and such and looks more professional on your end.
Textbox = txt
Label = lbl
ComboBox = cmb
Command Button = cmd
ImageBox = img
PictureBox = pic
And so on for prefixes.
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
|
| Back to top |
|
 |
pimpstonie Advanced Cheater
Reputation: 0
Joined: 27 Sep 2007 Posts: 70
|
Posted: Fri Sep 28, 2007 7:09 am Post subject: |
|
|
I learned VB programming from AOL back in the day and had tons of help from PR rooms VB and prøgz but since Aol became more lame everyone left.
| Code: | Add this to the top of each form:
Option Explicit |
Doing this will make you add Dims! (Does not do it for you sorry to say.)
If you dont Dim everything then there procedure wont work 100% but will still work.
Id say VB is the most easy program language there is, im sure there are other people that will differ. We all are! =)
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Fri Sep 28, 2007 7:12 am Post subject: |
|
|
"making yourself add dims" is an essential part of life if you happen to be learning vb before vb.net or C++, because all other languages except javascript will hunt you down for that
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Fri Sep 28, 2007 9:00 am Post subject: |
|
|
| pimpstonie wrote: | I learned VB programming from AOL back in the day and had tons of help from PR rooms VB and prøgz but since Aol became more lame everyone left.
| Code: | Add this to the top of each form:
Option Explicit |
Doing this will make you add Dims! (Does not do it for you sorry to say.)
If you dont Dim everything then there procedure wont work 100% but will still work.
Id say VB is the most easy program language there is, im sure there are other people that will differ. We all are! =) |
Using Option Explicit stops you from being a lazy coder. I used it for everything I did in VB6. I hate seeing code that doesn't use it cause people just throw random names into functions and never change them later on when they release stuff so you stare at a function and see it all gobbled up with shit names for variables. I
t gets very annoying trying to read syntax that way. Instead, having Dims at the top of your functions makes it look more professional, as well as easier to read for others if you release the code.
|
|
| Back to top |
|
 |
|