LieannM's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 30 (0.04 per day)
- Joined:
- 18-June 11
- Profile Views:
- 524
- Last Active:
Jul 04 2012 06:34 AM- Currently:
- Offline
Previous Fields
- Country:
- PH
- OS Preference:
- Windows
- Favorite Browser:
- Chrome
- Favorite Processor:
- Intel
- Favorite Gaming Platform:
- PC
- Your Car:
- Who Cares
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Right Syntax for Looping
Posted 4 Jul 2012
AdamSpeight2008, on 04 July 2012 - 06:24 AM, said:Think. Do Research. Experiment.
Research: While Loop
Research: MessageBox
etc
If you struggle take the problem down to the basics.
Create a simple console applications, to test out ideas and concepts without added complication a UI framework brings.
thanks a lot
-
In Topic: Right Syntax for Looping
Posted 4 Jul 2012
AdamSpeight2008, on 04 July 2012 - 05:56 AM, said:Programming is just writing code into an IDE, the vast majority of it is problem solving.
What do want the code do?
What is the code actually doing?
What happens when the login is successful? unsuccessful?
If MsgBoxResult.Yes Then
Isn't working as you think it is, because you don't capture the result of the messagebox.
Debugging Tutorial
then what am i supposed to do?
-
In Topic: Right Syntax for Looping
Posted 4 Jul 2012
[quote name='raziel_' date='04 July 2012 - 05:08 AM' timestamp='1341403718' post='1657253']
your logic is incorrect. why your loop is till "ctr" is equal to 3 and then you decrease it:
While ctr = 3
what must i put on my while ?
-
In Topic: Right Syntax for Looping
Posted 4 Jul 2012
Dim ctr As Integer ctr = 3 While ctr = 3 If TxtUsername.Text = "julie" And TxtPassword.Text = "mamatra" Then MsgBox("Access Granted!") Me.Hide() FrmSimpleMath.ShowDialog() Else MsgBox("Access Denied! Try Again?", MsgBoxStyle.YesNo + MsgBoxStyle.Critical) If MsgBoxResult.Yes Then ctr -= 1 If ctr = 0 Then MsgBox("Error!", MsgBoxStyle.Critical) Else TxtPassword.Clear() TxtUsername.Clear() TxtUsername.Focus() End If Else End End If End If End While
hi guys, im sorry
i cant think correctly right now. i need to loop this 3 times (3 tries). and for the 4th try the program will show error msg and will end.
how is it?
-
In Topic: Right Syntax for Looping
Posted 4 Jul 2012
raziel_, on 04 July 2012 - 03:30 AM, said:hi,
about how to increment
Dim i As Integer i=i+1 'or i+=1
As m_wylie85 sad you should think of making the user name case insensitive you can use .ToLower method. and you should think of using DB for your login. If your program is simple you can at least use a file that you can save the passwords and username. this way you can make a login form that you can create a users. try avoiding using hard coded passwords and user names. you can only add some admin pass or something that can be used by you only.
good luck
thank you!
My Information
- Member Title:
- New D.I.C Head
- Age:
- 19 years old
- Birthday:
- November 8, 1993
- Gender:
-
- Years Programming:
- 2
- Programming Languages:
- C++, JAVA
Contact Information
- E-mail:
- Private
- Facebook:
- juliemamatra@yahoo.com
- Twitter:
- LieannM
|
|


Find Topics
Find Posts
View Reputation Given



|
Comments
LieannM has no profile comments yet. Why not say hello?