Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
 
HORIZONTAL SCROLL BAR
CODES
SHOW/HIDE/CHANGE IMAGE
CODES
ADD/REMOVE/CLEAR ITEMS
CODES
CODES
PRELOADING ITEMS
CODES
LIST BOX TO TEXT BOX
CODES
DOUBLE-CLICK TO REMOVE
CODES
CLICK THE REMOVE BUTTON TO DELETE THE ITEMS
CODES
DOUBLE-CLICK TO TRANSFER FROM LIST BOX TO ANOTHER LIST BOX
CODES
DISPLAYING THE ITEMS IN THE LIST BOX AND SHOWING THE DESCRIPTION IN A TEXT BOX
CODES
CODES
THE USE OF COMBO BOX
CODES
CODES
COMBO BOX TO TEXT BOX
CODES
COMBO BOX TO LIST BOX
CODES
USE OF VARIABLES
CODES
CODES
USE OF CONSTANTS
CODES
USE OF VARIABLES - GRADE
CODES
CODES
CODES
CODES
USE OF OPERATORS – GETTING THE DISCOUNT
CODES
CODES
OPERATORS - CALCULATOR
CODES
CODES
CODES
FUNCTIONS
CODES
CODES
CODES
COMMONLY USED FUNCTIONS <ul><li>String Functions – commands used to evaluate string values.  </li></ul>
STRING FUNCTIONS <ul><li>Len  </li></ul>Syntax: Len(string)  Example: Name=“Monica” Result=Len(Name) Output:  6
STRING FUNCTIONS <ul><li>Left  </li></ul>Syntax: Left(string, length)  Example: Message=“Hello there” Result=Left(Message,...
STRING FUNCTIONS <ul><li>Right  </li></ul>Syntax: Right(string, length)  Example: Message=“Hello there” Result=Right(Messa...
STRING FUNCTIONS <ul><li>Mid  </li></ul>Syntax: Mid(string, starting position,  length)
STRING FUNCTIONS Example: Message=“Patience is a virtue” Result=Mid(Message,15,6) Output:  virtue
STRING FUNCTIONS <ul><li>UCase  </li></ul>Syntax: UCase(string)  Example: Warning=“Wet Floor” Result=UCase(Warning) Output...
STRING FUNCTIONS <ul><li>LCase  </li></ul>Syntax: LCase(string)  Example: Warning=“Wet  Floor” Result=LCase(Warning) Outpu...
STRING FUNCTIONS <ul><li>Val  </li></ul>Syntax: Val(string)  Example: Num = five Result=Val(Num) Output:  5
COMMONLY USED FUNCTIONS 2. Date Functions – commands used to set the date and time.
DATE FUNCTIONS <ul><li>Date  </li></ul>Syntax: Date()  Example: Dim Cur_Date as String Cur_Date = Date() Output:  07/10/1978
DATE FUNCTIONS <ul><li>Time  </li></ul>Syntax: Time()  Example: Dim Cur_Time as String Cur_Time = Time() Output:  2:08:34 PM
DATE FUNCTIONS <ul><li>Now  </li></ul>Syntax: Now()  Example: lbl2.caption = Now() Output: 11/30/2003 8:30:23 PM
DATE FUNCTIONS <ul><li>Format  </li></ul>Syntax: Format(string,  specified format)
DATE FUNCTIONS Example: Dim Cur_Date as Date lbl2.caption=Format(Cur_Date,  “ yyyy-mm-dd”) Output:  2009-05-14
COMMONLY USED FUNCTIONS 3. Number Functions – used to change looks of a value.
NUMBER FUNCTIONS <ul><li>Format  </li></ul>Syntax: Format(string,  specified format)
NUMBER FUNCTIONS Example: Dim Result as Single Result = 245.6 lbl2.caption=Format(Result,”0000.00”) lbl2.caption=Format(Re...
COMMONLY USED FUNCTIONS 4. Input/Output Functions – commands used for accepting user information.
INPUT/OUTPUT FUNCTIONS <ul><li>InputBox  </li></ul>Syntax: variable=InputBox(“Prompt”,Title, Default_text, x-position, y-p...
INPUT/OUTPUT FUNCTIONS Example: Dim Add as String Add=InputBox(“What is your Address?”, Add, ”Type here”, 900, 1000) Output:
INPUT/OUTPUT FUNCTIONS <ul><li>MsgBox  </li></ul>Syntax: variable=MsgBox(“Prompt”, Style Value, Title)
INPUT/OUTPUT FUNCTIONS Example: Dim Data as String Data=MsgBox(“Password accepted”, 0  ” Accepting”) Output:
Style Value Named Constant 0 vbOK 1 vbOKCancel 2 vbAbortRetryIgnore 3 vbYesNoCancel 4 vbYesNo 5 vbRetryCancel MESSAGE BOX ...
 
CODES ICONS 16 vbCRITICAL 32 vbQUESTION 48 vbEXCLAMATION 64 vbINFORMATION MESSAGE BOX ICONS
DECISION:IF-THEN STRUCTURE
CODES
IF THEN-ELSE  STRUCTURE
CODES
NESTED IF  STRUCTURE
CODES
CASE  STRUCTURE
CODES
CODES
ORDER SEATWORK
CODES
CODES
LOOPS: DO WHILE
CODES
LOOPS: DO UNTIL
CODES
LOOPS: FOR NEXT
CODES
CREATING MENUS USING MENU EDITOR
Upcoming SlideShare
Loading in …5
×

Visual Basic Codes And Screen Designs

91,072 views

Published on

Published in: Education
  • Dating direct: ❤❤❤ http://bit.ly/2Qu6Caa ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ♥♥♥ http://bit.ly/2Qu6Caa ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS/FILE INTO AVAILABLE FORMAT - (Unlimited) ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes Christian, Classics, Comics, Contemporary, Cookbooks, Art, Biography, Business, Chick Lit, Children's, Manga, Memoir, Music, Science, Science Fiction, Self Help, History, Horror, Humor And Comedy, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Visual Basic Codes And Screen Designs

  1. 2. HORIZONTAL SCROLL BAR
  2. 3. CODES
  3. 4. SHOW/HIDE/CHANGE IMAGE
  4. 5. CODES
  5. 6. ADD/REMOVE/CLEAR ITEMS
  6. 7. CODES
  7. 8. CODES
  8. 9. PRELOADING ITEMS
  9. 10. CODES
  10. 11. LIST BOX TO TEXT BOX
  11. 12. CODES
  12. 13. DOUBLE-CLICK TO REMOVE
  13. 14. CODES
  14. 15. CLICK THE REMOVE BUTTON TO DELETE THE ITEMS
  15. 16. CODES
  16. 17. DOUBLE-CLICK TO TRANSFER FROM LIST BOX TO ANOTHER LIST BOX
  17. 18. CODES
  18. 19. DISPLAYING THE ITEMS IN THE LIST BOX AND SHOWING THE DESCRIPTION IN A TEXT BOX
  19. 20. CODES
  20. 21. CODES
  21. 22. THE USE OF COMBO BOX
  22. 23. CODES
  23. 24. CODES
  24. 25. COMBO BOX TO TEXT BOX
  25. 26. CODES
  26. 27. COMBO BOX TO LIST BOX
  27. 28. CODES
  28. 29. USE OF VARIABLES
  29. 30. CODES
  30. 31. CODES
  31. 32. USE OF CONSTANTS
  32. 33. CODES
  33. 34. USE OF VARIABLES - GRADE
  34. 35. CODES
  35. 36. CODES
  36. 37. CODES
  37. 38. CODES
  38. 39. USE OF OPERATORS – GETTING THE DISCOUNT
  39. 40. CODES
  40. 41. CODES
  41. 42. OPERATORS - CALCULATOR
  42. 43. CODES
  43. 44. CODES
  44. 45. CODES
  45. 46. FUNCTIONS
  46. 47. CODES
  47. 48. CODES
  48. 49. CODES
  49. 50. COMMONLY USED FUNCTIONS <ul><li>String Functions – commands used to evaluate string values. </li></ul>
  50. 51. STRING FUNCTIONS <ul><li>Len </li></ul>Syntax: Len(string) Example: Name=“Monica” Result=Len(Name) Output: 6
  51. 52. STRING FUNCTIONS <ul><li>Left </li></ul>Syntax: Left(string, length) Example: Message=“Hello there” Result=Left(Message,5) Output: Hello
  52. 53. STRING FUNCTIONS <ul><li>Right </li></ul>Syntax: Right(string, length) Example: Message=“Hello there” Result=Right(Message,5) Output: there
  53. 54. STRING FUNCTIONS <ul><li>Mid </li></ul>Syntax: Mid(string, starting position, length)
  54. 55. STRING FUNCTIONS Example: Message=“Patience is a virtue” Result=Mid(Message,15,6) Output: virtue
  55. 56. STRING FUNCTIONS <ul><li>UCase </li></ul>Syntax: UCase(string) Example: Warning=“Wet Floor” Result=UCase(Warning) Output: WET FLOOR
  56. 57. STRING FUNCTIONS <ul><li>LCase </li></ul>Syntax: LCase(string) Example: Warning=“Wet Floor” Result=LCase(Warning) Output: wet floor
  57. 58. STRING FUNCTIONS <ul><li>Val </li></ul>Syntax: Val(string) Example: Num = five Result=Val(Num) Output: 5
  58. 59. COMMONLY USED FUNCTIONS 2. Date Functions – commands used to set the date and time.
  59. 60. DATE FUNCTIONS <ul><li>Date </li></ul>Syntax: Date() Example: Dim Cur_Date as String Cur_Date = Date() Output: 07/10/1978
  60. 61. DATE FUNCTIONS <ul><li>Time </li></ul>Syntax: Time() Example: Dim Cur_Time as String Cur_Time = Time() Output: 2:08:34 PM
  61. 62. DATE FUNCTIONS <ul><li>Now </li></ul>Syntax: Now() Example: lbl2.caption = Now() Output: 11/30/2003 8:30:23 PM
  62. 63. DATE FUNCTIONS <ul><li>Format </li></ul>Syntax: Format(string, specified format)
  63. 64. DATE FUNCTIONS Example: Dim Cur_Date as Date lbl2.caption=Format(Cur_Date, “ yyyy-mm-dd”) Output: 2009-05-14
  64. 65. COMMONLY USED FUNCTIONS 3. Number Functions – used to change looks of a value.
  65. 66. NUMBER FUNCTIONS <ul><li>Format </li></ul>Syntax: Format(string, specified format)
  66. 67. NUMBER FUNCTIONS Example: Dim Result as Single Result = 245.6 lbl2.caption=Format(Result,”0000.00”) lbl2.caption=Format(Result,”$00.00”) Output: 0245.60 $24.60
  67. 68. COMMONLY USED FUNCTIONS 4. Input/Output Functions – commands used for accepting user information.
  68. 69. INPUT/OUTPUT FUNCTIONS <ul><li>InputBox </li></ul>Syntax: variable=InputBox(“Prompt”,Title, Default_text, x-position, y-position)
  69. 70. INPUT/OUTPUT FUNCTIONS Example: Dim Add as String Add=InputBox(“What is your Address?”, Add, ”Type here”, 900, 1000) Output:
  70. 71. INPUT/OUTPUT FUNCTIONS <ul><li>MsgBox </li></ul>Syntax: variable=MsgBox(“Prompt”, Style Value, Title)
  71. 72. INPUT/OUTPUT FUNCTIONS Example: Dim Data as String Data=MsgBox(“Password accepted”, 0 ” Accepting”) Output:
  72. 73. Style Value Named Constant 0 vbOK 1 vbOKCancel 2 vbAbortRetryIgnore 3 vbYesNoCancel 4 vbYesNo 5 vbRetryCancel MESSAGE BOX STYLE VALUES
  73. 75. CODES ICONS 16 vbCRITICAL 32 vbQUESTION 48 vbEXCLAMATION 64 vbINFORMATION MESSAGE BOX ICONS
  74. 76. DECISION:IF-THEN STRUCTURE
  75. 77. CODES
  76. 78. IF THEN-ELSE STRUCTURE
  77. 79. CODES
  78. 80. NESTED IF STRUCTURE
  79. 81. CODES
  80. 82. CASE STRUCTURE
  81. 83. CODES
  82. 84. CODES
  83. 85. ORDER SEATWORK
  84. 86. CODES
  85. 87. CODES
  86. 88. LOOPS: DO WHILE
  87. 89. CODES
  88. 90. LOOPS: DO UNTIL
  89. 91. CODES
  90. 92. LOOPS: FOR NEXT
  91. 93. CODES
  92. 94. CREATING MENUS USING MENU EDITOR

×