1 / 24

Running Your Visual Basic Program

Running Your Visual Basic Program. Design time is the mode in which you add controls to containers (such as forms) and write code to respond to events.

lael
Download Presentation

Running Your Visual Basic Program

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. Running Your Visual Basic Program • Design time is the mode in which you add controls to containers (such asforms) and write code to respond to events. • The runtime environment allows you to see your program running thesame way a user would. During runtime, you can see all your Visual Basiccode, but you cannot modify it. • Break mode allows you to pause the execution of your Visual Basic program(during runtime) to view, edit, and debug your program code.

  2. VB Proje Dosyaları • Project files (.vbp) list all project files andcomponents in the project. The project file also contains information onthe project’s environmental settings. • The form modules (.frm) file contains textual descriptions of forms,controls, and their properties. The form module file can also containform-level declarations of variables, constants, and procedures. • The group project file (.vbg) contains a list of all Visual Basic projects in one group. • The form data file (.frx) is created for each form. It contains binaryinformation for graphics such as pictures and icons. • Standard modules (.bas) can contain global declarations and public andexternal procedures. • Thus, the development of a Visual Basic project involves keeping track of several different files, and accessing these files individually within the Visual Basic environment, as needed.

  3. Kontroller (Denetimler) ve ilgili Özellikleri

  4. Visual Basic controls have events, properties, and methods associated with them. • You can change the properties of controls • when you’re designing your program (also known as design-time changes) • through program code during runtime (when your program is running) • You can start to see that the properties describe a control or object.

  5. Kontrol İsimleri

  6. Form Kontrolü • Sometimes called windows or dialog boxes, forms act as an interface to programs’functionality. Forms also serve as containers for other controls.

  7. Sık Kullanılan Form Özellikleri

  8. Komut Düğmesi Kontrolü • Command buttons are most commonly used for starting or triggering proceduresthrough an event.

  9. Sık Kullanılan Komut Düğmesi Özellikleri

  10. Tiyo • If you add the ampersand (&) symbol to any control’s Caption property, it underlinesthe character to its immediate right. This is a useful tool for creating shortcutkeys. Shortcut keys let a user hold down the Alt key and press the letterunderlined to invoke the click event of that control.

  11. Etiket Kontrolü • Label controls are often used as descriptive text for other controls that do not havetheir own caption properties. A good example is the text box control, which hasno self-describing property viewable to a user in runtime. Often, a programmerwill put a label control to the left of a text box to describe what the user shouldenter into the text box.

  12. Sık Kullanılan Etiket Özellikleri

  13. Metin Kutusu Kontrolü • The text box control is popular for acquiring user input and displaying variousoutputs. You might find it useful when expecting a user to enter either numbersor text or a combination of both. The text box control has no caption property,so a label generally signifies to the user what it is you want him or her to enteras input.

  14. Sık Kullanılan Metin Kutusu Özellikleri

  15. Resim Kontrolü ve Resim Kutusu Kontrolü • You can use both the image control and the picture box to display various graphics(such as .bmp, .gif, .jpg, or .ico files). However, applying a number of graphics toyour program can consume a lot of memory and create excessive overhead. If youplan to develop games or other graphically intensive programs with Visual Basic,it is important for you to understand each of these control’s benefits and disadvantages. • Some benefits to the image control are that it uses much less memory and overheadthan the picture box does and that it can re-paint itself much faster thanthe picture box. An advantage of the picture box is that it is actually a window orcontainer that can contain other controls, unlike the image control.

  16. Sık Kullanılan Resim ve Resim Kutusu Özellikleri

  17. Çerçeve Kontrolü • Like a form or a picture box, the frame control is considered a container for othercontrols. Frames are often used to isolate various functionalities on a form. Forexample, I might use frames if I were developing a loan application that had asection for the applicant and a section for the co-applicant on the same form. Iwould put all the applicant’s labels, text boxes, and other controls in one framecontrol and the co-applicant’s controls in another frame. This way, I graphicallyisolate groups of items or tasks. • Frames also serve an important role when you use option buttons (sometimescalled radio buttons) or check boxes.

  18. Sık Kullanılan Çerçeve Özellikleri

  19. Seçim kutusu kontrolü • You use check boxes when you want to give the user the ability to select one ormore choices. You should place check boxes in a container such as a frame controlto denote a related grouping.

  20. Sık Kullanılan Seçim Kutusu Özellikleri

  21. Seçenek Düğmesi Kontrolü • Option buttons are often referred to as radio buttons. The term radio button refersto old car stereos that used push-in buttons. You could push in only one button ata time. This still holds true with the concept behind the graphical option button.Option buttons are similar to check boxes with one main exception. As with theold car radio buttons, you can click only one button at a time. They are usefulwhen you want to give a user a selection of various items but let her select onlyone out of many. As soon as a user selects one option button out of many, the restof the option buttons in a group become unavailable. Like check boxes, optionbuttons are generally placed in a container such as a frame control.

  22. Sık Kullanılan Seçenek Düğmesi Özellikleri

  23. Lab Uygulaması: Word Art

More Related