Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Vb6 Help password

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Thu Sep 27, 2007 3:24 pm    Post subject: Vb6 Help password Reply with quote

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
View user's profile Send private message
MegaForum
Grandmaster Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 558

PostPosted: Thu Sep 27, 2007 3:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Pseudo Xero
I post too much
Reputation: 0

Joined: 16 Feb 2007
Posts: 2607

PostPosted: Thu Sep 27, 2007 4:05 pm    Post subject: Re: Vb6 Help password Reply with quote

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
View user's profile Send private message
MegaForum
Grandmaster Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 558

PostPosted: Thu Sep 27, 2007 4:09 pm    Post subject: Reply with quote

Go with Xene Very Happy im not as good at at VB as other languages Razz
Back to top
View user's profile Send private message
Golden Wing
Grandmaster Cheater
Reputation: 0

Joined: 29 Aug 2007
Posts: 905

PostPosted: Thu Sep 27, 2007 4:11 pm    Post subject: Reply with quote

thx both of you for the scripts Smile Edit; it say object requires Edit:lol nvm i had to change txtpassword to text1
_________________
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Sep 27, 2007 4:44 pm    Post subject: Reply with quote

xDemonRobbiex wrote:
thx both of you for the scripts Smile 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
View user's profile Send private message Visit poster's website
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Thu Sep 27, 2007 8:17 pm    Post subject: Reply with quote

Wiccaan wrote:
xDemonRobbiex wrote:
thx both of you for the scripts Smile 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 = cbo
Command Button = btn
ImageBox = img
PictureBox = pic

And so on for prefixes.


hungarian notation (well, ive used those notations for at least all the schools ive been to)

_________________
Get kidnapped often.
Back to top
View user's profile Send private message
pimpstonie
Advanced Cheater
Reputation: 0

Joined: 27 Sep 2007
Posts: 70

PostPosted: Fri Sep 28, 2007 7:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Trow
Grandmaster Cheater
Reputation: 2

Joined: 17 Aug 2006
Posts: 957

PostPosted: Fri Sep 28, 2007 7:12 am    Post subject: Reply with quote

"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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Sep 28, 2007 9:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites