Friday, July 5, 2013

IF Statement Syntax

If logicalcondition Then
Compound Statement
End If

Sample Program that best illustrate the use of IF Statement in Visual Basic 6.0.

Interface

Object Properties

Source Code 


Private Sub cmdclose_Click()
If MsgBox("Are you sure you want to end this program?", vbQuestion + vbYesNo, "Comparing Two Numbers using IF Statement") = vbYes Then
    End
End If
End Sub

Private Sub cmdIF_Click()
If cmdIF.Caption = "Co&mpare" Then
    If Val(txtnum1.Text) > Val(txtnum2.Text) Then
        MsgBox "The highest number is Num1: " & txtnum1.Text & """", vbInformation + vbOKOnly, "Comparing Two Numbers using IF Statement"
    End If
    If Val(txtnum1.Text) = Val(txtnum2.Text) Then
        MsgBox "The inputted numbers are equal."
    End If
    If Val(txtnum1.Text) < Val(txtnum2.Text) Then
        MsgBox "The highest number is Num2: " & txtnum2.Text & """", vbInformation + vbOKOnly, "Comparing Two Numbers using IF Statement"
    End If
    cmdIF.Caption = "Cle&ar"
Else
    txtnum1.Text = ""
    txtnum2.Text = ""
    cmdIF.Caption = "Co&mpare"
End If
End Sub

Private Sub Form_Load()
    Me.Top = (Screen.Height - Me.Height) / 3
    Me.Left = (Screen.Width - Me.Width) / 2
End Sub


Download the Full Project by clicking here.

Tuesday, July 2, 2013

Create the following interface by utilizing the simple concepts discussed by your instructor.


Graphical User Interface:


Source Code:


Private Sub cmdClose_Click()
If MsgBox("Are you sure you want to end this program?", vbQuestion + vbYesNo, "Hello World Application") = vbYes Then
    End
End If
End Sub

Private Sub cmdPrint_Click()
If cmdPrint.Caption = "&Print" Then
    txtPrint.Text = "Hello World!"
    cmdPrint.Caption = "&Clear"
Else
    txtPrint.Text = ""
    cmdPrint.Caption = "&Print"
End If
End Sub

Private Sub Form_Load()
'Setting off the form on the center of the monitor.
    Me.Top = (Screen.Height - Me.Height) / 3
    Me.Left = (Screen.Width - Me.Width) / 2
End Sub

Download the Full Project by clicking here.

Monday, June 24, 2013

iDroid Kata Smart Phone powered by Anroid version 2.3.5

 If we have reached the maximum patterns allowed in opening iDroid Kata smart phone, we can access our  phone by signing in to the Email Account provided during the mobile phone first use.

If ever we have not set Email Account on our smart phone. We need to perform hard reset on iDroid. I would like to share this solutions on how I solve this problem.

Few single steps to Hard Reset.
1. Press and hold Power and Volume Down button while opening your iDroid phone.
2. Factory Mode Screen will display.
3. Use Audio controls button to navigate selection.
4. Select Clear Flash to reset iDroid.
5. Wait your iDroid to Restart and apply the factory settings.
6. Follow on-screen instructions on iDroid Phone First Use.
7. Set-up or Skip the process to add account on your mobile phone. Presto!

Manual Reset on iDroid:
1. Access Settings
2. Select Privacy
3. Open Factory data reset
4. We can erase all content from the SD card by selecting the checkbox erase sd card, or ignore to still view the contents of our SD card.
5. Click reset phone
6. Confirm action by selecting erase everything.
7. Wait your smart phone to restart. Presto!  Your smart phone factory default settings.

I've attached the video on the actual iDroid Reset solutions of Hannah smart phone.
Credits to Hannah for the problem of her phone. :D

Wednesday, June 19, 2013

If you miss to play your favorite Games from an Old Game Console like SEGA Genesis, it is now possible without your Dirty Old Game Console but through your Smartphone.

First thing to do is to download a Game Console Emulator for Smartphones:

Download Nintendo Family Computer Emulator (NES Emulator 1.5.7)
Download SEGA Genesis Emulator (Gensoid)

After installing your Favorite Game Console Emulator, you can download hundreds of ROMS available at Free ROMS.
To use sim card from other network to network locked Java Enabled Samsung Phones, just follow this few simple easy steps:

Step 1:
Remove the battery from the phone and insert the sim card half way to the sim card slot.

Step 2:
Insert the battery and provide space so that you can push the sim card later. Turn on the cellphone.

Step 3:
When the phone turns on and display Insert Sim Card, you can select one of this two option to restart your phone.
- Dial *2767*2878#
or
- Go to Settings -> Time and Date -> Automatic time update. When your phone prompts to restart, just click Yes.

Step 4:
When the phone is in off condition, push the sim card using any pointed object to fit it in sim card slot.
Push it before the phone starts up.

When the phone starts and display the Network Provider in your phone, you have successfully bypassed the network lock setting from your phone.

Enjoy!