1 / 17

CSI 101 Elements of Computing

CSI 101 Elements of Computing. Spring 2009 Lecture #12 – Using Visual Basic Developer Studio Monday, March 23 rd. Visual Studio. Development environment for Visual Basic Makes creation of VB applications easier Provides toolbars to assist developer Packages application in desired form

jess
Télécharger la présentation

CSI 101 Elements of Computing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSI 101Elements of Computing Spring 2009 Lecture #12 – Using Visual Basic Developer Studio Monday, March 23rd

  2. Visual Studio • Development environment for Visual Basic • Makes creation of VB applications easier • Provides toolbars to assist developer • Packages application in desired form • Executable • DLL

  3. Opening Screen

  4. Development Area • Workarea • Can see forms, code, and available toolbars • Project Window • Shows all forms in Project/Application • Properties Window • Shows properties of current object • Current object is the one highlighted in the workarea

  5. Project Window Properties Window

  6. Menu Bar • File: saving the Project’s data • Edit • View : change open Windows • Project : Add items to Project • Build : Compile your Project • Debug : Test your application • Ignore the others for now

  7. File options

  8. View options

  9. Debug options

  10. Adding objects to Form • Click on icon in toolbox • Click on one corner where you want it • Holding down mouse button, roll mouse to ending point • Object will automatically be added • It becomes current object, with Properties window updating

  11. Form Properties • (Name) : Name of form as seen in Project window • Back Color : background color • Caption : Title as appears on Title bar • Icon : Picture that appears on Windows application bar

  12. Text Box Properties • (Name) : Name of object as referenced in code • Alignment : Text aligns with what? • Left – begins to left of box • Right – stops at right edge • Center – Centered in box • Font : Font style • Fore Color : Font color

  13. Text Box Properties, cont • Locked : Can user change value in box? • Visible : Seen on screen • This property can be changed in procedure code • Often changed to “suddenly” make a text box apper

  14. Command Button Properties • (Name) • Caption : Text that appears on button • Enabled : Button can be clicked • Often changed to make a button available only with certain text values

  15. Object Event Code • Open Code window by double clicking on an object in the Work area • If no code previously, will create event procedure for most common event • Form_Load • CommandButton_Click • TextBox_Change

  16. Common Events • Command Button • Click : Occurs when button is “clicked” • Text Box • Change : Value is changed or added • GotFocus : cursor arrives in text box • LostFocus : cursor leaves text box

More Related