| View previous topic :: View next topic |
| Author |
Message |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Fri Sep 28, 2007 5:54 pm Post subject: vb8 password protection |
|
|
| i was wondering about the code....and can i put like a user name in so that like i can have like 5 users that can log in on it, possible? like having a user name and password like a login on a game kinda.....if not....then whats the code for the password protection on the vb8, cause i wanted to password protect my trainer
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Fri Sep 28, 2007 6:00 pm Post subject: |
|
|
| Code: | Private Sub cmdLogin_Click()
Select Case txtName.Text
Case "Admin"
If txtPassword.Text = "Admin'sPassword" Then
Call msgbox("Logged in")
Else
Call msgbox("User found, invalid password")
End If
Case "OMAR"
If txtPassword.Text = "ALLAHHHHH" Then
Call msgbox("Logged in")
Else
Call msgbox("User found, invalid password")
End If
Case Else
Call msgbox("Invalid username")
End Select
End Sub |
There's a example for you.
_________________
| 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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Sep 28, 2007 6:19 pm Post subject: |
|
|
| Xenephobe wrote: | There's a example for you.  |
Ahahahahahaha.
Anyways, password protecting in VB is stupid. All they need to do is decompile it and take the passwords out of the code.
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Fri Sep 28, 2007 6:31 pm Post subject: |
|
|
| Flyte wrote: | | Xenephobe wrote: | There's a example for you.  |
Ahahahahahaha.
Anyways, password protecting in VB is stupid. All they need to do is decompile it and take the passwords out of the code. |
It's pretty much the best you can do in VB.
And by the way... I guess you've never made typos, eh?
_________________
| 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 |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Sep 28, 2007 6:34 pm Post subject: |
|
|
| Xenephobe wrote: | It's pretty much the best you can do in VB.
And by the way... I guess you've never made typos, eh? |
Nobody is perfekt.
|
|
| Back to top |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Fri Sep 28, 2007 6:35 pm Post subject: |
|
|
thanks alot xenephobe
and thanks flyte for the spam post....
edit: hold up hold up xenephobe thats not vb8 code.....cause vb6 ends in end sub
vb8 ends in end class....thats vb6 code...not vb8
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Fri Sep 28, 2007 6:40 pm Post subject: |
|
|
| killar456 wrote: | thanks alot xenephobe
and thanks flyte for the spam post....
edit: hold up hold up xenephobe thats not vb8 code.....cause vb6 ends in end sub
vb8 ends in end class....thats vb6 code...not vb8 |
VB8 uses End Class and End Sub. End Class ends all the code in a form, End Sub ends the code in a event. I only have Delphi installed atm, so sorry if there are any problems in the code...
_________________
| 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 |
|
 |
killar456 Master Cheater
Reputation: 0
Joined: 30 Mar 2007 Posts: 415
|
Posted: Fri Sep 28, 2007 6:49 pm Post subject: |
|
|
probally not any problems
so i only have to rename the cmd button right? or do i have to rename the text to?
text box or rich text boxes?
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Sep 28, 2007 7:14 pm Post subject: |
|
|
| killar456 wrote: | | and thanks flyte for the spam post.... |
It was a perfectly valid post. It is not my fault that you cannot accept the fact that VB is a horrible language for everything, and that includes security.
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Fri Sep 28, 2007 7:33 pm Post subject: |
|
|
| VB is a good beginners language. Good for making trainers and getting the feel of what its like to be a programmer. Once you get more advanced in it, more on to something more complicated like C or C++.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Sep 28, 2007 7:38 pm Post subject: |
|
|
| MegaForum wrote: | | VB is a good beginners language. Good for making trainers and getting the feel of what its like to be a programmer. Once you get more advanced in it, more on to something more complicated like C or C++. |
VB is the worst possible language for a newbie to learn, it ruins their mind. The best language to start off learning is C, then go to ASM.
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Fri Sep 28, 2007 7:44 pm Post subject: |
|
|
| Flyte wrote: | | MegaForum wrote: | | VB is a good beginners language. Good for making trainers and getting the feel of what its like to be a programmer. Once you get more advanced in it, more on to something more complicated like C or C++. |
VB is the worst possible language for a newbie to learn, it ruins their mind. The best language to start off learning is C, then go to ASM. |
People who don't mind using it, can use it for making simple games. All though it does mess minds up because,
1. your not really learning code, just simple commands like ie- text2.txt
but like in c++ you needa use a cout >> " <insert text > " for a comment or w/e.
2. good for trainers. Ive seen many good trainers in vb6, only because i imagine its easier.
3. I personally don't know vb well. I practice with c++, and from my knowledge, c++ is unversil with unlimited possibilities as to what you can code in it. VB is OK for beginners, but your right it kinda messes them up.
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Fri Sep 28, 2007 7:50 pm Post subject: |
|
|
| MegaForum wrote: | People who don't mind using it, can use it for making simple games. All though it does mess minds up because,
1. your not really learning code, just simple commands like ie- text2.txt
but like in c++ you needa use a cout >> " <insert text > " for a comment or w/e. |
Exactly, you aren't learning how to code, thats what screws up your mind. VB leads you into thinking that it is actual programming.
Also: C != C++ (Yes, thats != not <>)
| MegaForum wrote: | | 2. good for trainers. Ive seen many good trainers in vb6, only because i imagine its easier. |
Maybe flash trainers.
| MegaForum wrote: | your right it kinda messes them up.  |
I accept your apology.
|
|
| Back to top |
|
 |
MegaForum Grandmaster Cheater
Reputation: 0
Joined: 20 Aug 2007 Posts: 558
|
Posted: Fri Sep 28, 2007 7:51 pm Post subject: |
|
|
| Flyte wrote: | | MegaForum wrote: | People who don't mind using it, can use it for making simple games. All though it does mess minds up because,
1. your not really learning code, just simple commands like ie- text2.txt
but like in c++ you needa use a cout >> " <insert text > " for a comment or w/e. |
Exactly, you aren't learning how to code, thats what screws up your mind. VB leads you into thinking that it is actual programming.
Also: C != C++ (Yes, thats != not <>)
| MegaForum wrote: | | 2. good for trainers. Ive seen many good trainers in vb6, only because i imagine its easier. |
Maybe flash trainers.
| MegaForum wrote: | your right it kinda messes them up.  |
I accept your apology.  |
ty
|
|
| Back to top |
|
 |
Pseudo Xero I post too much
Reputation: 0
Joined: 16 Feb 2007 Posts: 2607
|
Posted: Fri Sep 28, 2007 7:56 pm Post subject: |
|
|
I'm really starting to dislike Visual Studio; but right now I'm looking for a good C++ Compiler/IDE. Any suggestions? [/offtopic]
_________________
| 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 |
|
 |
|