แผนการจัดการเรียนรู้1 3

267 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
267
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

แผนการจัดการเรียนรู้1 3

  1. 1. Visual Basic2Visual BasicVisual Basic- - -
  2. 2. VisualBasicVisual BasicVisual Basic- - - -- - -1.“ ”Visual BasicVisualBasic
  3. 3. 6.PowerPoint4.6.--7.
  4. 4. ---
  5. 5. Visual BasicVisual BasicBASIC 1963 Hohn KenenyThomas Kurtz DartmouthBasic1970Microsoft Basic Rom ChipRadio Sheek TRS-80 GWBasicInterpreter MS-Dos 1982 MicrosoftQuickBaicExecuted Program Basic StructuredProgramming" Line NumberSpaghetti Code Subprogram UserDefined Structured Data TypeTurbo C Turbo Pascal
  6. 6. VisualBasicWindowsVisualizeSource CodeVisual BasicWindowsObject Linking andEmbedding (OLE) Application Programming Interface (API)windowsVisual Basic- windows- Microsoft access , Microsoft SQLserver- Active X-
  7. 7. Visual BasicProject Standard . EXEProject FileMenu barTool barTool boxProject explorerProperties windowFormVisual Basic 21.: user interface2.(Control)text box(Label)(Command button)
  8. 8. (Properties),1. text box text2. (Label) Caption3. (Command button) captionVisual BasicStart >> Programs>>
  9. 9. PropertiesLabel NameCaptionlbl_nameNAME :Text NameTexttxt_nameCommandbuttonNameCaptioncmd_okOK(Code)Project1 Form1Private Sub cmd_ok_Click()MsgBox txt_name.Text, vbOKOnlyEnd Sublbl_nametxt_namecmd_ok
  10. 10. Visual Basic2Visual BasicMenu barTool barTool boxProject explorerProperties windowForm-
  11. 11. - -Tool bar-Tool boxVisual BasicControl- - - -- - -1.Power pointVisual BasicMenu bar , Toolbar Tool box, Project explorer, Properties window,Form
  12. 12. 6.PowerPoint4.6.
  13. 13. ---7.--
  14. 14. Visual Basic 6.0FormBackgroundToolboxIconControl
  15. 15. FormToolbarProjectExplorerWindowFormForm 1 FormPropertiesWindowProjectForm LayoutWindowFormRunToolbar)Visual Basic41. Standard ToolbarsProject2. Edit Toolbarscode editor3. Debug Toolbars
  16. 16. 4. Form Editor Toolbars,,AddStandardEXE ProjectProjectProgramAdd FormForm ProjectFormMenu EditorMenu EditorMenuFormOpenProjectSave ProjectCutObject FormCopy Copy Object FormPastePaste Object CutCopyFindEditorFormEditor
  17. 17. UndoTypingEditorForm EditorRedoTypingEditorStartRun ProjectBreak ProjectEnd Run ProjectProjectExplorerProject FormModuleProjectWindowProjectFormFormLayoutwindowForm LayoutFormObjectBrowserObject BrowserClassClassTool Box Tool BoxFormx y FormForm x
  18. 18. Form yToolbox Controls21. Intrinsic controls)Visual BasicForm
  19. 19. ControlClassCheckboxCheckBox True/False,Yes/No)ComboboxComboBox control Textbox List boxCombo boxCommandbuttonCommandButton controlClick eventprocedure controlData Data controlVisual Basiccontrol
  20. 20. tableData Database JetActiveX Data Object (ADO)DirectoryList boxDirListBox List boxDrive ListboxDriveListBox Combo boxControlClassFile listboxFileListBox List boxFrame Frame container controlHorizontalVerticalScroll BarHScrollBarVScrollBarstand-alonecontrolImage Image control Picturebox containerImagePicture boxLabel Label controlLine Line control
  21. 21. List box ListBox controlMultiSelectOLEcontainerOLE control Host windowMicrosoftExcelwindowVisual BasicOptionbuttonOptionButton control controlcontrolcontrolcontrolPictureboxPictureBox BMP, DIB(bitmap), ico), WMF (metafile),GIF JPEGShape Shape controlText box TextBox controlTimer Timer control
  22. 22. 2. ActiveX (ActiveX controls)Project/ComponentsForm DesignerVisual Basic Project 1
  23. 23. Project ExplorerProject Explorer(tree-view)2Project Explorer
  24. 24. Project (n) vbpForm (n) .frm11ModulesbasClassModules clsUser controlsActiveXctlDesigners dsrProperties Window(adtive) focus)
  25. 25. 21. Alphabetic2. CategorizedForm LayoutdragImmediate WindowNew Project
  26. 26. New Project File/NewProjectVisual BasicCode Editor
  27. 27. PropertiesLabel NameCaptionlbl_nameLabel NameCaptionlbl_surnameText NameTexttxt_nameText NameTexttxt_surname
  28. 28. CommandbuttonNameCaptioncmd_okForm NameCaptionFrm_login(Code)Project2 Form12- Visual Basic Project---Private Sub cmd_ok_Click()MsgBox " " & Text1.Text & " " &Text2.Text, vbOKOnly, " "End Sub
  29. 29. -7--- - - -- - -1.
  30. 30. 6.Visual Basic4.6.--7.
  31. 31. ---
  32. 32. Visual BasicProjectFile >> NewProject2. Standard EXE3. Open
  33. 33. Form Design Window
  34. 34. 4. Control Label5.Form6. Caption “ ”7. Control Label lbl_name8.9.
  35. 35. 2.UnderScore(_)-1. File >> Save Project2.Form4. Save
  36. 36. ProjectSave-File>> Open Project
  37. 37. 2.Open5. Project Explorer-Form
  38. 38. -Project ExplorerRemove Form (n)
  39. 39. Form1Form2Form2
  40. 40. Project 1

×