Interesting Education      Electro-Team    Visual Basic 2010                        Electroteam__@hotmail.com
IF....Then Statement   IF   condition   Then        VB expression         End IF
Conditional & Logical Operators  Operator                    Meaning     =                        Equal to     >          ...
Open new project
Add above controls
F5     Edit Properties then press F5 to display output window
Steps to add new form to your project
Steps to add new form to your project
Back to Form1
Double click on button1
You can select any value for textbox. Here my value = xyz small letters.
Press F5 and writ your password (value) in the textbox, then press button1.
Close program from Stop button in IDE Toolbar
Add ListBox & PictureBox to Form2
Open project properties
Select Resources tab
We need to drag and drop image files here
Drag pics from local drive and drop it in VB resources window
Run TimeSelecting pic1 in ListBox will result this output
pic_one = image file name
AssignmentImages stretched to fit PictureBox dimensions
IF....Then Else Statement      IF   condition   Then           VB expression              Else           VB expression    ...
Back To Form1
IF....Then...ElseIF Statement      IF   condition   Then           VB expression    ElseIF condition Then           VB exp...
Produced byElectro-Team             Electroteam__@hotmail.com
IF Then vb2010
IF Then vb2010
IF Then vb2010
IF Then vb2010
IF Then vb2010
IF Then vb2010
Upcoming SlideShare
Loading in...5
×

IF Then vb2010

401
-1

Published on

Visual basic 2010
If Then Statement

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
401
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
35
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

IF Then vb2010

  1. 1. Interesting Education Electro-Team Visual Basic 2010 Electroteam__@hotmail.com
  2. 2. IF....Then Statement IF condition Then VB expression End IF
  3. 3. Conditional & Logical Operators Operator Meaning = Equal to > More than < Less Than >= More than and equal <= Less than and equal <> Not Equal to OR One side or other must be true AND Both sides must be true Xor One side or other must be true but not both Not Negates truth
  4. 4. Open new project
  5. 5. Add above controls
  6. 6. F5 Edit Properties then press F5 to display output window
  7. 7. Steps to add new form to your project
  8. 8. Steps to add new form to your project
  9. 9. Back to Form1
  10. 10. Double click on button1
  11. 11. You can select any value for textbox. Here my value = xyz small letters.
  12. 12. Press F5 and writ your password (value) in the textbox, then press button1.
  13. 13. Close program from Stop button in IDE Toolbar
  14. 14. Add ListBox & PictureBox to Form2
  15. 15. Open project properties
  16. 16. Select Resources tab
  17. 17. We need to drag and drop image files here
  18. 18. Drag pics from local drive and drop it in VB resources window
  19. 19. Run TimeSelecting pic1 in ListBox will result this output
  20. 20. pic_one = image file name
  21. 21. AssignmentImages stretched to fit PictureBox dimensions
  22. 22. IF....Then Else Statement IF condition Then VB expression Else VB expression End IF
  23. 23. Back To Form1
  24. 24. IF....Then...ElseIF Statement IF condition Then VB expression ElseIF condition Then VB expression Else VB expression End IF
  25. 25. Produced byElectro-Team Electroteam__@hotmail.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×