University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. LostFocus Resize System event

Similar documents
GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab. List of items

SMCCOMM.OCX. Communications Driver for SMC Controllers. List of features

DATABASE AUTOMATION USING VBA (ADVANCED MICROSOFT ACCESS, X405.6)

Contents Introduction Getting Started Visual Basic Form Configuration Entering the VB Code

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

NATIONAL DIPLOMA IN COMPUTER TECHNOLOGY

Respond to Data Entry Events

Catching Events. Bok, Jong Soon

VBA Foundations, Part 7

The Control Properties

2-26 Learn Visual Basic 6.0

Answer: C. 7. In window we can write code A. Immediate window B. Locals window C. Code editor window D. None of these. Answer: C

Learn Visual Basic 6.0

DataViews Custom Editor Reference Manual. DataViews for Windows Version 2.0

In the previous chapter, I showed you how to build a program

CSE 154 LECTURE 10: MORE EVENTS

Event Demonstrator. occurs when user changes data displayed on a bound form. occurs when user returns a form s data to its original state

Philadelphia University Faculty of Information Technology. Visual Programming

Visual Basic.NET. 1. Which language is not a true object-oriented programming language?

Hell is other browsers - Sartre. The touch events. Peter-Paul Koch (ppk) DIBI, 28 April 2010

CST242 Windows Forms with C# Page 1

Text box. Command button. 1. Click the tool for the control you choose to draw in this case, the text box.

Interacting with Measurement Studio Graphs in Visual Basic Heather Edwards

Creating Fill-able Forms using Acrobat 7.0: Part 1

PowerTerm WebConnect WebView

University of Technology Laser & Optoelectronics Engineering Department Visual basic Lab.

Full file at Programming in Visual Basic 2010

Band Editor User Guide Version 1.3 Last Updated 9/19/07

GETTING STARTED WITH VBA

ADJUST TABLE CELLS-ADJUST COLUMN AND ROW WIDTHS

2D1640 Grafik och Interaktionsprogrammering VT Good for working with different kinds of media (images, video clips, sounds, etc.

Labels and Envelopes in Word 2013

Chapter 2. Creating Applications with Visual Basic Pearson Addison-Wesley. All rights reserved. Addison Wesley is an imprint of

Programming with visual Basic:

EPSON RC+ 7.0 Option. GUI Builder 7.0 EM145A2719F. Rev. 2

JavaScript and Events

SIMPLE TEXT LAYOUT FOR COREL DRAW. When you start Corel Draw, you will see the following welcome screen.

Hell is other browsers - Sartre. The touch events. Peter-Paul Koch (ppk) WebExpo, 24 September 2010

Rich Text Editor Quick Reference

User Guide. Book Release 4 Xojo, Inc.

Computer Basics. Logging onto Windows

Working with Tables in Word 2010

Corel Ventura 8 Introduction

DAQBench. 32-bit ActiveX controls for Measurement and Automation. User Interface Controls Reference

Microsoft Dynamics GP Modifier User s Guide

Information System Services

1. What tool do you use to check which cells are referenced in formulas that are assigned to the active cell?

1 Dept: CE.NET Programming ( ) Prof. Akash N. Siddhpura. Working with Form: properties, methods and events

729G26 Interaction Programming. Lecture 4

Using Adobe Contribute 4 A guide for new website authors

Visual Programming 1. What is Visual Basic? 2. What are different Editions available in VB? 3. List the various features of VB

MODIFYING CIRCULATION WINDOW DISPLAYS

The Newsletter will contain a Title for the newsletter, a regular border, columns, Page numbers, Header and Footer and two images.

SavoyLog ActiveX Control User Guide

XnView Image Viewer. a ZOOMERS guide

SmartArt Office 2007

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN COMPUTER ENGINEERING Semester: 4

Responding to the Mouse

Chaos Culture. MIDI Modulators / Multiclip Note preview 1.6. Edited by Jason Cowling

Excel Select a template category in the Office.com Templates section. 5. Click the Download button.

Chapter 2 Visual Basic, Controls, and Events. 2.1 An Introduction to Visual Basic 2.2 Visual Basic Controls 2.3 Visual Basic Events

XnView 1.9. a ZOOMERS guide. Introduction...2 Browser Mode... 5 Image View Mode...15 Printing Image Editing...28 Configuration...

Excel 2003 Tutorial II

Document Editor Basics

The American University in Cairo. Academic Computing Services. Access prepared by. Aya Saad. Spring 2003

SAULT COLLEGE OF APPLIED ARTS & TECHNOLOGY SAULT STE MARIE, ON COURSE OUTLINE

Quick Reference. WindoWall Console. Menu Icons (Toolbar) Menu Bar

Tutorials. Lesson 3 Work with Text

GUJARAT TECHNOLOGICAL UNIVERSITY DIPLOMA IN INFORMATION TECHNOLOGY Semester: 4

NiceForm User Guide. English Edition. Rev Euro Plus d.o.o. & Niceware International LLC All rights reserved.

Events. Event Handler Arguments 12/12/2017. EEE-425 Programming Languages (2016) 1

Center for Faculty Development and Support Making Documents Accessible

Microsoft Word 2016 by Prapaporn Techa-angkoon adapted into English by Dr. Prakarn Unachak

3. The first step in the planning phase of a programming solution is to sketch the user interface.

PowerPoint 2007 Cheat Sheet

Multimedia web page Board

ASNA Visual RPG for Smarties

CS130/230 Lecture 12 Advanced Forms and Visual Basic for Applications

Day : Date : Objects : Open MS Excel program * Open Excel application. Select : start. Choose: programs. Choose : Microsoft Office.

LAF CSS tags. These tags can be used in the LAF CSS file

Quick reference guide Report templates. Contents

Visual Studio.NET enables quick, drag-and-drop construction of form-based applications

Working with Tables in Microsoft Word

Label Design Program Label Artist-II Manual Rev. 1.01

Microsoft Access 2016 Intro to Forms and Reports

Using Visual FoxPro s ActiveX Controls

PAGE TITLE KEYBOARD SHORTCUTS

K e y b o a r d s h o rt c ut s

First we start by importing our image assets to our "Chapters" card

Customization Manager

INFORMATICS LABORATORY WORK #4

BasicScript 2.25 User s Guide. May 29, 1996

Information Design. Professor Danne Woo! infodesign.dannewoo.com! ARTS 269 Fall 2018 Friday 10:00PM 1:50PM I-Building 212

NetAdvantage for ASP.NET Release Notes

Warping & Blending AP

Quick Reference Card Business Objects Toolbar Design Mode

Universitas Sumatera Utara

TSM Report Designer. Even Microsoft Excel s Data Import add-in can be used to extract TSM information into an Excel spread sheet for reporting.

Desktop Publishing (Word)

Transcription:

Events Private Sub Form_Load() Load Close Unload Private Sub Form_Unload(Cancel As Integer) Cancel=True Cancel * Show Activate SetFocus Focus Deactivate SetFocus GotFocus CommandButton LostFocus Resize System event Paint Label KeyBoard KeyUp DragDrop KeyDown F..F Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbkeyf Then Print "F" ' F Shift User event KeyCode

F..F Private Sub Form_KeyPress(KeyAscii As Integer) v = Chr(KeyAscii) If v = "c" Then Form.Cls Asc AsciiCode AsciiCode KeyPress Chr AsciiCode User event Click DblClick MouseMove Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) MouseUp MouseDown Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = Then Print "Left" ElseIf Button = Then Print "Right" End If if If condition Then [statements] [Else elsestatements] If condition Then [statements] [ElseIf condition-n Then [elseifstatements]... [Else [elsestatements]] End If

Middle Bits of Button Right Left Value (left) (right) 3 (left and right) 4 (middle) Alt Bits of Shift Ctrl Shift Statements Beep : End Exit Sub Randomize Module File Form_Load Function Rnd Rnd[(number)] 3

Print Label Control خصائص شريط الطباعة Label's Properties Name, Backcolor, Top, Left, Height, Width, Tag, MousePointer, MouseIcon, Enabled, Visible, RightToLeft, Font, FontName, FontBold, FontItalic, FontStrikethru, and FontUnderline Label.FontBold=True (set FontBold to True) Label.FontBold=False (reset FontBold to False) Label.FontBold= Not Label.FontBold (toggle FontBold) Caption Label.caption="no" Label.caption=5 (Label.caption=Label.caption+ ) Label.caption="no="+str(x) where x=3, str to convert integer no. to string Label.caption="" 'null caption no 5 no=3 3 4 5 Label.Caption = "Book" + Chr() + "Chair" + Chr() + "CopyBook" Label.Caption = "Book" + vbcrlf + "Chair" + vbcrlf + "CopyBook" Chr(3) Chr() Chr() vbcrlf Chr() Chr(3) 'multiple lines (where autosize property=true and WordWrap=True) Chr() 4

Alignment Alignment Setting Description vbleftjustify (Default) Text is left-aligned. vbrightjustify Text is right-aligned. vbcenter Text is centered. AutoSize True False BorderStyle BackColor BackStyle (Text Box BackStyle Description Transparent background color and any graphics are visible behind the control. (Default) Opaque the control's BackColor property setting fills the control and obscures any color or graphics behind it. Appearance DragIcon Drag DragMode 5

Constant Setting Description vbmanual (Default) Manual requires using the Drag method to initiate a drag-and-drop operation on the source control. vbautomatic Automatic clicking the source control automatically initiates a drag-and-drop operation. OLE container controls are automatically dragged only when they don't have the focus. ToolTipText AutoSize object.wordwrap [= boolean] True WordWrap The settings for boolean are: Setting True False Description The text wraps; the Label control expands or contracts vertically to fit the text and the size of the font. The horizontal size doesn't change. (Default) The text doesn't wrap; the Label expands or contracts horizontally to fit the length of the text and vertically to fit the size of the font and the number of lines. Tab Tab DataField & DataSource TabIndex Index : Events Click, DblClick, MouseDown, MouseUp, MouseMove, DragDrop events. Change Caption Move, Refresh, and Zorder Methods. Object.Zorder position : Methods Zorder 6

Position Label.Zorder ' Label.Zorder ' Label.Zorder ' Comment (single quotation mark) ' Rem Ali Muna Paste Copy Label() Label Label() Yes Label() index index index Private Sub Label_Click(Index As Integer) Label(Index).Caption = Index DragDrop Source if index 7

DragIcon DragDrop Automatic DragMode= Private Sub Label4_DragDrop(Source As Control, X As Single, Y As Single) Label4.BackColor = Source.BackColor Source.Visible = False Zorder 8

Project properties Object Property Setting Form Name Caption Form Label Label Name Label Caption Welcome Alignment الكتابت في الىسط AutoSize يصبح الشزيط بحجم الكلمت True BackColor اخضز BackStyle حتى يأخذ لىن خلفيت مه BackColor ثالثي األبعاد Appearance كلمت تظهز تحته عىدما وؤشز عليه بالماوس ToolTipText Test WordWrap لضبط الكلمت True Label() Name Index Label Label() Name Index Label Label() Name Label Label3 Label4 Poject code Index Name BackColor BackStyle DragMode DragIcon Name BackColor BackStyle Private Sub Form_Load() Label.Caption = "Ali" + Chr() + "Muna" Private Sub Label_Click() Label.FontBold = Not Label.FontBold Private Sub Label_Click(Index As Integer) Label(Index).Caption = Index Private Sub Label3_Click() Label3.ZOrder 9 Label3 احمز 'Automatic صىرة Label4 اسرق

Private Sub Label4_DragDrop(Source As Control, X As Single, Y As Single) Label4.BackColor = Source.BackColor Source.Visible = False